MCPcopy Create free account
hub / github.com/NVlabs/DiffusionNFT / __len__

Method __len__

scripts/evaluation.py:66–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 self.prompts = [line.strip() for line in f.readlines()]
65
66 def __len__(self):
67 return len(self.prompts)
68
69 def __getitem__(self, idx):
70 return {"prompt": self.prompts[idx], "metadata": {}, "original_index": idx}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected