Datasets:

ArXiv:
DOI:
License:
ProgramComputer commited on
Commit
ace1c21
·
1 Parent(s): e365e75

Update VGGFace2.py

Browse files
Files changed (1) hide show
  1. VGGFace2.py +2 -3
VGGFace2.py CHANGED
@@ -149,11 +149,10 @@ class VGGFace2(datasets.GeneratorBasedBuilder):
149
  meta_paths["identity"],
150
  sep=", "
151
  )
152
- raise Exception(meta_paths.values())
153
- for conf in [x for x in meta_paths.values() if x != meta_paths["identity"]]:
154
 
155
  temp = pd.read_csv(conf,sep='\t', header=None)
156
- temp.columns = ['Image_Path', conf]
157
 
158
  temp['Class_ID'] = temp['Image_Path'].str.split('/').str[0]
159
  #temp['Image_Name'] = temp['Image_Path'].str.split('/').str[1]
 
149
  meta_paths["identity"],
150
  sep=", "
151
  )
152
+ for key,conf in [k,v for x in meta_paths.items() if x[0] != "identity"]:
 
153
 
154
  temp = pd.read_csv(conf,sep='\t', header=None)
155
+ temp.columns = ['Image_Path', key]
156
 
157
  temp['Class_ID'] = temp['Image_Path'].str.split('/').str[0]
158
  #temp['Image_Name'] = temp['Image_Path'].str.split('/').str[1]