(dir, images)
| 24 | |
| 25 | |
| 26 | def 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 | |
| 36 | def make_dataset(dir, recursive=False, read_cache=False, write_cache=False): |
no test coverage detected