MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / __init__

Method __init__

timm/data/dataset.py:71–92  ·  view source on GitHub ↗
(
            self,
            root,
            parser=None,
            split='train',
            is_training=False,
            batch_size=None,
            repeats=0,
            download=False,
            transform=None,
            target_transform=None,
    )

Source from the content-addressed store, hash-verified

69class IterableImageDataset(data.IterableDataset):
70
71 def __init__(
72 self,
73 root,
74 parser=None,
75 split='train',
76 is_training=False,
77 batch_size=None,
78 repeats=0,
79 download=False,
80 transform=None,
81 target_transform=None,
82 ):
83 assert parser is not None
84 if isinstance(parser, str):
85 self.parser = create_parser(
86 parser, root=root, split=split, is_training=is_training,
87 batch_size=batch_size, repeats=repeats, download=download)
88 else:
89 self.parser = parser
90 self.transform = transform
91 self.target_transform = target_transform
92 self._consecutive_errors = 0
93
94 def __iter__(self):
95 for img, target in self.parser:

Callers

nothing calls this directly

Calls 1

create_parserFunction · 0.85

Tested by

no test coverage detected