MCPcopy
hub / github.com/NVlabs/SPADE / get_paths

Method get_paths

data/facades_dataset.py:27–39  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

25 return parser
26
27 def get_paths(self, opt):
28 root = opt.dataroot
29 phase = 'val' if opt.phase == 'test' else opt.phase
30
31 label_dir = os.path.join(root, '%s_label' % phase)
32 label_paths = make_dataset(label_dir, recursive=False, read_cache=True)
33
34 image_dir = os.path.join(root, '%s_img' % phase)
35 image_paths = make_dataset(image_dir, recursive=False, read_cache=True)
36
37 instance_paths = []
38
39 return label_paths, image_paths, instance_paths

Callers

nothing calls this directly

Calls 1

make_datasetFunction · 0.90

Tested by

no test coverage detected