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.
|
74 |
-
|
75 |
'gender':
|
76 |
-
annotations_df.loc[annotations_df['photo'].str.
|
77 |
-
|
78 |
'age':
|
79 |
-
annotations_df.loc[annotations_df['photo'].str.
|
80 |
-
|
81 |
'country':
|
82 |
-
annotations_df.loc[annotations_df['photo'].str.
|
83 |
-
|
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 |
}
|