Datasets:
fix
Browse files- README.md +24 -2
- presentation-attack-detection-2d-dataset.py +1 -1
README.md
CHANGED
|
@@ -1,13 +1,35 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: cc-by-nc-nd-4.0
|
| 3 |
task_categories:
|
| 4 |
- video-classification
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
tags:
|
| 8 |
- code
|
| 9 |
- legal
|
| 10 |
- finance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
# Presentation Attack Detection 2D Dataset
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: cc-by-nc-nd-4.0
|
| 5 |
task_categories:
|
| 6 |
- video-classification
|
|
|
|
|
|
|
| 7 |
tags:
|
| 8 |
- code
|
| 9 |
- legal
|
| 10 |
- finance
|
| 11 |
+
dataset_info:
|
| 12 |
+
features:
|
| 13 |
+
- name: photo
|
| 14 |
+
dtype: image
|
| 15 |
+
- name: video
|
| 16 |
+
dtype: string
|
| 17 |
+
- name: worker_id
|
| 18 |
+
dtype: string
|
| 19 |
+
- name: set_id
|
| 20 |
+
dtype: string
|
| 21 |
+
- name: age
|
| 22 |
+
dtype: int8
|
| 23 |
+
- name: country
|
| 24 |
+
dtype: string
|
| 25 |
+
- name: gender
|
| 26 |
+
dtype: string
|
| 27 |
+
splits:
|
| 28 |
+
- name: train
|
| 29 |
+
num_bytes: 45568435
|
| 30 |
+
num_examples: 14
|
| 31 |
+
download_size: 458883249
|
| 32 |
+
dataset_size: 45568435
|
| 33 |
---
|
| 34 |
|
| 35 |
# Presentation Attack Detection 2D Dataset
|
presentation-attack-detection-2d-dataset.py
CHANGED
|
@@ -62,7 +62,7 @@ class PresentationAttackDetection2dDataset(datasets.GeneratorBasedBuilder):
|
|
| 62 |
for idx, (image_path, image) in enumerate(attacks):
|
| 63 |
if image_path.endswith("jpg"):
|
| 64 |
yield idx, {
|
| 65 |
-
"photo": {"path": image_path, "bytes": image},
|
| 66 |
"video": annotations_df.loc[
|
| 67 |
annotations_df["set_id"].str.contains(
|
| 68 |
"|".join(image_path.split("/")[0])
|
|
|
|
| 62 |
for idx, (image_path, image) in enumerate(attacks):
|
| 63 |
if image_path.endswith("jpg"):
|
| 64 |
yield idx, {
|
| 65 |
+
"photo": {"path": image_path, "bytes": image.read()},
|
| 66 |
"video": annotations_df.loc[
|
| 67 |
annotations_df["set_id"].str.contains(
|
| 68 |
"|".join(image_path.split("/")[0])
|