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

Method __init__

pix2pix/dataset.py:16–20  ·  view source on GitHub ↗
(self,root_dir)

Source from the content-addressed store, hash-verified

14
15class MapDataset(Dataset):
16 def __init__(self,root_dir):
17 super(MapDataset, self).__init__()
18
19 self.root_dir = root_dir
20 self.list_files = os.listdir(self.root_dir)
21
22 def __len__(self):
23 return len(self.list_files)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected