Datasets:

ArXiv:
DOI:
License:
ProgramComputer commited on
Commit
9126851
·
1 Parent(s): 593062f

Update VGGFace2.py

Browse files
Files changed (1) hide show
  1. VGGFace2.py +1 -3
VGGFace2.py CHANGED
@@ -154,13 +154,11 @@ class VGGFace2(datasets.GeneratorBasedBuilder):
154
  temp['Class_ID'] = temp['Image_Path'].str.split('/').str[0]
155
  temp['Image_Name'] = temp['Image_Path'].str.split('/').str[1]
156
 
157
- # Drop the 'Image_Path' column from df2
158
  temp.drop(columns=['Image_Path'], inplace=True)
159
 
160
- # Merge the two DataFrames on 'Class_ID'
161
  result_df = meta.merge(df2, on='Class_ID', how='outer')
162
  print(meta)
163
- for file_path, file_obj in images:
164
  if file_path.startswith(_IMAGES_DIR):
165
  if file_path[len(_IMAGES_DIR) : -len(".jpg")] in files_to_keep:
166
  clip_index = int(clip.stem)
 
154
  temp['Class_ID'] = temp['Image_Path'].str.split('/').str[0]
155
  temp['Image_Name'] = temp['Image_Path'].str.split('/').str[1]
156
 
 
157
  temp.drop(columns=['Image_Path'], inplace=True)
158
 
 
159
  result_df = meta.merge(df2, on='Class_ID', how='outer')
160
  print(meta)
161
+ for file_path, file_obj in paths:
162
  if file_path.startswith(_IMAGES_DIR):
163
  if file_path[len(_IMAGES_DIR) : -len(".jpg")] in files_to_keep:
164
  clip_index = int(clip.stem)