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

Method __getitem__

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

Source from the content-addressed store, hash-verified

80 ])
81
82 def __getitem__(self, idx):
83 c_data = self.data[idx]
84 image = Image.open(c_data)
85 image = self.preprocess(image)
86 return {'image': image}
87
88 def __len__(self):
89 return len(self.data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected