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

Method __init__

scripts/train_nft_sd3.py:80–83  ·  view source on GitHub ↗
(self, dataset, split="train")

Source from the content-addressed store, hash-verified

78
79class TextPromptDataset(Dataset):
80 def __init__(self, dataset, split="train"):
81 self.file_path = os.path.join(dataset, f"{split}.txt")
82 with open(self.file_path, "r") as f:
83 self.prompts = [line.strip() for line in f.readlines()]
84
85 def __len__(self):
86 return len(self.prompts)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected