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

Method __init__

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

Source from the content-addressed store, hash-verified

40
41class CLIPImageDataset(torch.utils.data.Dataset):
42 def __init__(self, data):
43 self.data = data
44 # only 224x224 ViT-B/32 supported for now
45 self.preprocess = self._transform_test(224)
46
47 def _transform_test(self, n_px):
48 return Compose([

Callers

nothing calls this directly

Calls 1

_transform_testMethod · 0.95

Tested by

no test coverage detected