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

Method __getitem__

customconcept101/evaluate.py:57–61  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

55 ])
56
57 def __getitem__(self, idx):
58 c_data = self.data[idx]
59 image = Image.open(c_data)
60 image = self.preprocess(image)
61 return {'image': image}
62
63 def __len__(self):
64 return len(self.data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected