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

Method __len__

scripts/train_nft_sd3.py:85–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.prompts = [line.strip() for line in f.readlines()]
84
85 def __len__(self):
86 return len(self.prompts)
87
88 def __getitem__(self, idx):
89 return {"prompt": self.prompts[idx], "metadata": {}}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected