MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / __len__

Method __len__

Code/datasets.py:30–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 self.photo_len = len(self.photo_Images)
29
30 def __len__(self):
31 return self.length_dataset
32
33 def __getitem__(self, index):
34 vango_img = self.vango_Images[index % self.vango_len]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected