summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdata/image_folder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/image_folder.py b/data/image_folder.py
index c286c8f..7f5c6af 100755
--- a/data/image_folder.py
+++ b/data/image_folder.py
@@ -38,8 +38,8 @@ def make_aligned_dataset(dir_A, dir_B):
print(dir_A)
print(dir_B)
- files_A = [f for f in os.listdir(dir_A) if os.path.isfile(os.path.join(dir_A, f) and is_image_file(f))]
- files_B = [f for f in os.listdir(dir_B) if os.path.isfile(os.path.join(dir_B, f) and is_image_file(f))]
+ files_A = [f for f in os.listdir(dir_A) if os.path.isfile(os.path.join(dir_A, f)) and is_image_file(f)]
+ files_B = [f for f in os.listdir(dir_B) if os.path.isfile(os.path.join(dir_B, f)) and is_image_file(f)]
images = sorted(list(set(files_A).intersection(files_B)))
# path = os.path.join(root, fname)
# images.append(path)