Unverified Commit 9b29f3f2 authored by IgorSusmelj's avatar IgorSusmelj Committed by GitHub
Browse files

Faster dataset indexing (#3939)

parent 234d262f
...@@ -86,8 +86,8 @@ def make_dataset( ...@@ -86,8 +86,8 @@ def make_dataset(
continue continue
for root, _, fnames in sorted(os.walk(target_dir, followlinks=True)): for root, _, fnames in sorted(os.walk(target_dir, followlinks=True)):
for fname in sorted(fnames): for fname in sorted(fnames):
path = os.path.join(root, fname) if is_valid_file(fname):
if is_valid_file(path): path = os.path.join(root, fname)
item = path, class_index item = path, class_index
instances.append(item) instances.append(item)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment