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(
continue
for root, _, fnames in sorted(os.walk(target_dir, followlinks=True)):
for fname in sorted(fnames):
path = os.path.join(root, fname)
if is_valid_file(path):
if is_valid_file(fname):
path = os.path.join(root, fname)
item = path, class_index
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