fix: sep docs: readme
Browse files- 2d-printed_masks_attacks.py +3 -3
- README.md +16 -0
2d-printed_masks_attacks.py
CHANGED
@@ -39,7 +39,7 @@ class PrintedMasksAttacks(datasets.GeneratorBasedBuilder):
|
|
39 |
license=_LICENSE)
|
40 |
|
41 |
def _split_generators(self, dl_manager):
|
42 |
-
masks = dl_manager.download(f"{_DATA}
|
43 |
live_selfies = dl_manager.download(f"{_DATA}live_selfie.tar.gz")
|
44 |
live_videos = dl_manager.download(f"{_DATA}live_video.tar.gz")
|
45 |
annotations = dl_manager.download(f"{_DATA}{_NAME}.csv")
|
@@ -49,7 +49,7 @@ class PrintedMasksAttacks(datasets.GeneratorBasedBuilder):
|
|
49 |
return [
|
50 |
datasets.SplitGenerator(name=datasets.Split.TRAIN,
|
51 |
gen_kwargs={
|
52 |
-
'
|
53 |
"live_selfies": live_selfies,
|
54 |
'live_videos': live_videos,
|
55 |
'annotations': annotations
|
@@ -61,7 +61,7 @@ class PrintedMasksAttacks(datasets.GeneratorBasedBuilder):
|
|
61 |
for idx, ((mask_path, mask), (live_selfie_path, live_selfie),
|
62 |
(live_video_path, live_video)) in enumerate(
|
63 |
zip(masks, live_selfies, live_videos)):
|
64 |
-
annotations_df = pd.read_csv(annotations)
|
65 |
yield idx, {
|
66 |
'2d_mask':
|
67 |
mask_path,
|
|
|
39 |
license=_LICENSE)
|
40 |
|
41 |
def _split_generators(self, dl_manager):
|
42 |
+
masks = dl_manager.download(f"{_DATA}2d_masks.tar.gz")
|
43 |
live_selfies = dl_manager.download(f"{_DATA}live_selfie.tar.gz")
|
44 |
live_videos = dl_manager.download(f"{_DATA}live_video.tar.gz")
|
45 |
annotations = dl_manager.download(f"{_DATA}{_NAME}.csv")
|
|
|
49 |
return [
|
50 |
datasets.SplitGenerator(name=datasets.Split.TRAIN,
|
51 |
gen_kwargs={
|
52 |
+
'masks': masks,
|
53 |
"live_selfies": live_selfies,
|
54 |
'live_videos': live_videos,
|
55 |
'annotations': annotations
|
|
|
61 |
for idx, ((mask_path, mask), (live_selfie_path, live_selfie),
|
62 |
(live_video_path, live_video)) in enumerate(
|
63 |
zip(masks, live_selfies, live_videos)):
|
64 |
+
annotations_df = pd.read_csv(annotations, sep=';')
|
65 |
yield idx, {
|
66 |
'2d_mask':
|
67 |
mask_path,
|
README.md
CHANGED
@@ -8,6 +8,22 @@ tags:
|
|
8 |
- finance
|
9 |
- legal
|
10 |
- code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
# 2D Printed Masks Attacks
|
|
|
8 |
- finance
|
9 |
- legal
|
10 |
- code
|
11 |
+
dataset_info:
|
12 |
+
features:
|
13 |
+
- name: 2d_mask
|
14 |
+
dtype: string
|
15 |
+
- name: live_selfie
|
16 |
+
dtype: image
|
17 |
+
- name: live_video
|
18 |
+
dtype: string
|
19 |
+
- name: phone_model
|
20 |
+
dtype: string
|
21 |
+
splits:
|
22 |
+
- name: train
|
23 |
+
num_bytes: 101123818
|
24 |
+
num_examples: 9
|
25 |
+
download_size: 328956415
|
26 |
+
dataset_size: 101123818
|
27 |
---
|
28 |
|
29 |
# 2D Printed Masks Attacks
|