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

Method __len__

pix2pix/dataset.py:22–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 self.list_files = os.listdir(self.root_dir)
21
22 def __len__(self):
23 return len(self.list_files)
24
25 def __getitem__(self, index):
26 img_file = self.list_files[index]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected