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

Method __getitem__

src/diffusers_data_pipeline.py:268–272  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

266 return self.num_samples
267
268 def __getitem__(self, index):
269 example = {}
270 example["prompt"] = self.prompt
271 example["index"] = index
272 return example
273
274
275class CustomDiffusionDataset(Dataset):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected