-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_eval_on_reconstructed.sh
More file actions
134 lines (107 loc) · 4.15 KB
/
run_eval_on_reconstructed.sh
File metadata and controls
134 lines (107 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/bin/bash
set -e
echo "Starting evaluation..."
# LFW
python3 algorithms/eval_accuracy.py \
--json runs/reconstructions/reconstruction_lfw_retinaface_arcface/samples.json \
--model arcface \
--exp lfw_retina_arcface_raw_reconstruction \
--flip
python3 algorithms/eval_accuracy.py \
--json runs/reconstructions/reconstruction_lfw_mtcnn_facenet/samples.json \
--model facenet \
--exp lfw_mtcnn_facenet_raw_reconstruction \
--flip
# AgeDB-30
python3 algorithms/eval_accuracy.py \
--json runs/reconstructions/reconstruction_agedb_30_retinaface_arcface/samples.json \
--model arcface \
--exp agedb_retina_arcface_raw_reconstruction \
--flip
python3 algorithms/eval_accuracy.py \
--json runs/reconstructions/reconstruction_agedb_30_mtcnn_facenet/samples.json \
--model facenet \
--exp agedb_mtcnn_facenet_raw_reconstruction \
--flip
# CFP-FP
python3 algorithms/eval_accuracy.py \
--json runs/reconstructions/reconstruction_cfp_fp_retinaface_arcface/samples.json \
--model arcface \
--exp cfp_retina_arcface_raw_reconstruction \
--flip
python3 algorithms/eval_accuracy.py \
--json runs/reconstructions/reconstruction_cfp_fp_mtcnn_facenet/samples.json \
--model facenet \
--exp cfp_mtcnn_facenet_raw_reconstruction \
--flip
echo "Starting full preprocessing pipeline for reconstructed images..."
# LFW
source activate py3_10
python3 algorithms/preprocess_faces.py \
--json runs/reconstructions/reconstruction_lfw_retinaface_arcface/samples.json \
--dataset lfw \
--aligner mtcnn \
--out_dir runs/preprocessed_for_another_model_reconstructions
source activate ins_env # rerun
python3 algorithms/preprocess_faces.py \
--json runs/reconstructions/reconstruction_lfw_mtcnn_facenet/samples.json \
--dataset lfw \
--aligner retinaface \
--out_dir runs/preprocessed_for_another_model_reconstructions
# AgeDB-30
python3 algorithms/preprocess_faces.py \
--json runs/reconstructions/reconstruction_agedb_30_retinaface_arcface/samples.json \
--dataset agedb_30 \
--aligner mtcnn \
--out_dir runs/preprocessed_for_another_model_reconstructions
python3 algorithms/preprocess_faces.py \
--json runs/reconstructions/reconstruction_agedb_30_mtcnn_facenet/samples.json \
--dataset agedb_30 \
--aligner retinaface \
--out_dir runs/preprocessed_for_another_model_reconstructions
# CFP-FP
python3 algorithms/preprocess_faces.py \
--json runs/reconstructions/reconstruction_cfp_fp_retinaface_arcface/samples.json \
--dataset cfp_fp \
--aligner mtcnn \
--out_dir runs/preprocessed_for_another_model_reconstructions
python3 algorithms/preprocess_faces.py \
--json runs/reconstructions/reconstruction_cfp_fp_mtcnn_facenet/samples.json \
--dataset cfp_fp \
--aligner retinaface \
--out_dir runs/preprocessed_for_another_model_reconstructions
echo "Starting evaluation..."
# LFW
python3 algorithms/eval_accuracy.py \
--json runs/preprocessed_for_another_model_reconstructions/lfw_retinaface/samples.json \
--model arcface \
--exp lfw_reconstructed_from_facenet_evaluated_by_arcface \
--flip
python3 algorithms/eval_accuracy.py \
--json runs/preprocessed_for_another_model_reconstructions/lfw_mtcnn/samples.json \
--model facenet \
--exp lfw_reconstructed_from_arcface_evaluated_by_facenet \
--flip
# AgeDB-30
python3 algorithms/eval_accuracy.py \
--json runs/preprocessed_for_another_model_reconstructions/agedb_30_retinaface/samples.json \
--model arcface \
--exp agedb_reconstructed_from_facenet_evaluated_by_arcface \
--flip
python3 algorithms/eval_accuracy.py \
--json runs/preprocessed_for_another_model_reconstructions/agedb_30_mtcnn/samples.json \
--model facenet \
--exp lagedb_reconstructed_from_arcface_evaluated_by_facenet \
--flip
# CFP-FP
python3 algorithms/eval_accuracy.py \
--json runs/preprocessed_for_another_model_reconstructions/cfp_fp_retinaface/samples.json \
--model arcface \
--exp cfp_reconstructed_from_facenet_evaluated_by_arcface \
--flip
python3 algorithms/eval_accuracy.py \
--json runs/preprocessed_for_another_model_reconstructions/cfp_fp_mtcnn/samples.json \
--model facenet \
--exp cfp_reconstructed_from_arcface_evaluated_by_facenet \
--flip
echo "All evaluations completed."