Rietta5 commited on
Commit
77dd70e
·
verified ·
1 Parent(s): 6d2e958

Update Databases_IlluminantChanges.py

Browse files
Files changed (1) hide show
  1. Databases_IlluminantChanges.py +1 -1
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])