Datasets:
refactor: rename feature
Browse files
silicone-masks-biometric-attacks.py
CHANGED
|
@@ -35,7 +35,7 @@ class SiliconeMasksBiometricAttacks(datasets.GeneratorBasedBuilder):
|
|
| 35 |
features=datasets.Features(
|
| 36 |
{
|
| 37 |
"id": datasets.Value("int32"),
|
| 38 |
-
"
|
| 39 |
"video_path": datasets.Value("string"),
|
| 40 |
"label": datasets.ClassLabel(
|
| 41 |
num_classes=len(_LABELS),
|
|
@@ -68,7 +68,7 @@ class SiliconeMasksBiometricAttacks(datasets.GeneratorBasedBuilder):
|
|
| 68 |
|
| 69 |
yield idx, {
|
| 70 |
"id": idx,
|
| 71 |
-
"
|
| 72 |
"video_path": video_path,
|
| 73 |
"label": label,
|
| 74 |
}
|
|
|
|
| 35 |
features=datasets.Features(
|
| 36 |
{
|
| 37 |
"id": datasets.Value("int32"),
|
| 38 |
+
"video_name": datasets.Value("string"),
|
| 39 |
"video_path": datasets.Value("string"),
|
| 40 |
"label": datasets.ClassLabel(
|
| 41 |
num_classes=len(_LABELS),
|
|
|
|
| 68 |
|
| 69 |
yield idx, {
|
| 70 |
"id": idx,
|
| 71 |
+
"video_name": video_path.split("/")[-1],
|
| 72 |
"video_path": video_path,
|
| 73 |
"label": label,
|
| 74 |
}
|