Update Databases_IlluminantChanges.py
Browse files
Databases_IlluminantChanges.py
CHANGED
@@ -100,7 +100,7 @@ class Databases_IlluminantChanges(datasets.GeneratorBasedBuilder):
|
|
100 |
illum_paths = [os.path.join(illum_path, p) for p in os.listdir(illum_path)]
|
101 |
|
102 |
## Get the correct desat image for each illum image
|
103 |
-
img_numbers = [re.findall("\d+", p)[0] for p in illum_paths]
|
104 |
desat_paths = [os.path.join(desat_path, f"im_orig_desat{n}.png") for n in img_numbers]
|
105 |
|
106 |
print(desat_paths[0], illum_paths[0])
|
|
|
100 |
illum_paths = [os.path.join(illum_path, p) for p in os.listdir(illum_path)]
|
101 |
|
102 |
## Get the correct desat image for each illum image
|
103 |
+
img_numbers = [re.findall("im_(\d+)_tono_\d+_sat_\d+.png", p)[0] for p in illum_paths]
|
104 |
desat_paths = [os.path.join(desat_path, f"im_orig_desat{n}.png") for n in img_numbers]
|
105 |
|
106 |
print(desat_paths[0], illum_paths[0])
|