MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / __init__

Method __init__

examples/amused/train_amused.py:302–310  ·  view source on GitHub ↗
(
        self,
        instance_data_root,
        tokenizer,
        size=512,
    )

Source from the content-addressed store, hash-verified

300
301class InstanceDataRootDataset(Dataset):
302 def __init__(
303 self,
304 instance_data_root,
305 tokenizer,
306 size=512,
307 ):
308 self.size = size
309 self.tokenizer = tokenizer
310 self.instance_images_path = list(Path(instance_data_root).iterdir())
311
312 def __len__(self):
313 return len(self.instance_images_path)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected