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

Method get_paths

data/custom_dataset.py:35–50  ·  view source on GitHub ↗
(self, opt)

Source from the content-addressed store, hash-verified

33 return parser
34
35 def get_paths(self, opt):
36 label_dir = opt.label_dir
37 label_paths = make_dataset(label_dir, recursive=False, read_cache=True)
38
39 image_dir = opt.image_dir
40 image_paths = make_dataset(image_dir, recursive=False, read_cache=True)
41
42 if len(opt.instance_dir) > 0:
43 instance_dir = opt.instance_dir
44 instance_paths = make_dataset(instance_dir, recursive=False, read_cache=True)
45 else:
46 instance_paths = []
47
48 assert len(label_paths) == len(image_paths), "The #images in %s and %s do not match. Is there something wrong?"
49
50 return label_paths, image_paths, instance_paths

Callers

nothing calls this directly

Calls 1

make_datasetFunction · 0.90

Tested by

no test coverage detected