yonatanbitton commited on
Commit
b06dcef
1 Parent(s): b8c2404

Update fairface_val.py

Browse files
Files changed (1) hide show
  1. fairface_val.py +1 -1
fairface_val.py CHANGED
@@ -72,6 +72,6 @@ class Dataset(datasets.GeneratorBasedBuilder):
72
 
73
  for r_idx, r in df.iterrows():
74
  r_dict = r.to_dict()
75
- image_path = os.path.join(images_dir, images_dir, r_dict['image_name'])
76
  r_dict['image'] = image_path
77
  yield r_idx, r_dict
 
72
 
73
  for r_idx, r in df.iterrows():
74
  r_dict = r.to_dict()
75
+ image_path = os.path.join(images_dir, images_dir.replace(".zip",""), r_dict['image_name'])
76
  r_dict['image'] = image_path
77
  yield r_idx, r_dict