Vadzim Kashko commited on
Commit
b97adb5
1 Parent(s): 645167d

fix: file defenition

Browse files
anti-spoofing-real-waist-high-dataset.py CHANGED
@@ -70,16 +70,15 @@ class CarsVideoObjectTracking(datasets.GeneratorBasedBuilder):
70
  "video":
71
  video_path,
72
  'phone':
73
- annotations_df.loc[annotations_df['photo'].str.lower() ==
74
- image_path.lower()]['phone'].values[0],
75
  'gender':
76
- annotations_df.loc[annotations_df['photo'].str.lower() ==
77
- image_path.lower()]['gender'].values[0],
78
  'age':
79
- annotations_df.loc[annotations_df['photo'].str.lower() ==
80
- image_path.lower()]['age'].values[0],
81
  'country':
82
- annotations_df.loc[annotations_df['photo'].str.lower() ==
83
- image_path.lower()]
84
- ['country'].values[0],
85
  }
 
70
  "video":
71
  video_path,
72
  'phone':
73
+ annotations_df.loc[annotations_df['photo'].str.startswith(
74
+ str(idx))]['phone'].values[0],
75
  'gender':
76
+ annotations_df.loc[annotations_df['photo'].str.startswith(
77
+ str(idx))]['gender'].values[0],
78
  'age':
79
+ annotations_df.loc[annotations_df['photo'].str.startswith(
80
+ str(idx))]['age'].values[0],
81
  'country':
82
+ annotations_df.loc[annotations_df['photo'].str.startswith(
83
+ str(idx))]['country'].values[0],
 
84
  }