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

Function make_dataset_rec

data/image_folder.py:26–33  ·  view source on GitHub ↗
(dir, images)

Source from the content-addressed store, hash-verified

24
25
26def make_dataset_rec(dir, images):
27 assert os.path.isdir(dir), '%s is not a valid directory' % dir
28
29 for root, dnames, fnames in sorted(os.walk(dir, followlinks=True)):
30 for fname in fnames:
31 if is_image_file(fname):
32 path = os.path.join(root, fname)
33 images.append(path)
34
35
36def make_dataset(dir, recursive=False, read_cache=False, write_cache=False):

Callers 1

make_datasetFunction · 0.85

Calls 1

is_image_fileFunction · 0.85

Tested by

no test coverage detected