MCPcopy Create free account
hub / github.com/adobe-research/custom-diffusion / __init__

Method __init__

customconcept101/evaluate.py:68–71  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

66
67class DINOImageDataset(torch.utils.data.Dataset):
68 def __init__(self, data):
69 self.data = data
70 # only 224x224 ViT-B/32 supported for now
71 self.preprocess = self._transform_test(224)
72
73 def _transform_test(self, n_px):
74 return Compose([

Callers

nothing calls this directly

Calls 1

_transform_testMethod · 0.95

Tested by

no test coverage detected