Unverified Commit 43524b61 authored by Kotchin's avatar Kotchin Committed by GitHub
Browse files

Reverted folder.py back to using complete path to file for make_dataset and...


Reverted folder.py back to using complete path to file for make_dataset and is_valid_file rather than just the filename (#4885)
Co-authored-by: default avatarAlexander Unnervik <alex.unnervik@idiap.ch>
parent bbd9ff8f
...@@ -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):
if is_valid_file(fname): path = os.path.join(root, fname)
path = os.path.join(root, fname) if is_valid_file(path):
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