Create MCIO_protocol/README.md
Browse files
finetuned_models/MCIO_protocol/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Script for fine-tuning our FSFM-3C model for MCIO LOO evaluation of cross-domain face anti-spoofing:
|
2 |
+
|
3 |
+
==============OCI2M==============
|
4 |
+
```
|
5 |
+
CUDA_VISIBLE_DEVICES=0 python train_vit.py \
|
6 |
+
--pt_model ../../pretrain/checkpoint/pretrained_models/VF2_ViT-B/checkpoint-400.pth \
|
7 |
+
--op_dir ./checkpoint/finetuned_models/MCIO_protocol/OCI2M/ \
|
8 |
+
--report_logger_path ./checkpoint/finetuned_models/MCIO_protocol/OCI2M/performance.csv \
|
9 |
+
--config M \
|
10 |
+
```
|
11 |
+
|
12 |
+
==============OMI2C==============
|
13 |
+
```
|
14 |
+
CUDA_VISIBLE_DEVICES=0 python train_vit.py \
|
15 |
+
--pt_model ../../pretrain/checkpoint/pretrained_models/VF2_ViT-B/checkpoint-400.pth \
|
16 |
+
--op_dir ./checkpoint/finetuned_models/MCIO_protocol/OMI2C/ \
|
17 |
+
--report_logger_path ./checkpoint/finetuned_models/MCIO_protocol/OMI2C/performance.csv \
|
18 |
+
--config C \
|
19 |
+
```
|
20 |
+
|
21 |
+
==============OCM2I==============
|
22 |
+
```
|
23 |
+
CUDA_VISIBLE_DEVICES=3 python train_vit.py \
|
24 |
+
--pt_model ../../pretrain/checkpoint/pretrained_models/VF2_ViT-B/checkpoint-400.pth \
|
25 |
+
--op_dir ./checkpoint/finetuned_models/MCIO_protocol/OCM2I/ \
|
26 |
+
--report_logger_path ./checkpoint/finetuned_models/MCIO_protocol/OCM2I/performance.csv \
|
27 |
+
--config I \
|
28 |
+
```
|
29 |
+
|
30 |
+
==============ICM2O==============
|
31 |
+
```
|
32 |
+
CUDA_VISIBLE_DEVICES=3 python train_vit.py \
|
33 |
+
--pt_model ../../pretrain/checkpoint/pretrained_models/VF2_ViT-B/checkpoint-400.pth \
|
34 |
+
--op_dir ./checkpoint/finetuned_models/MCIO_protocol/ICM2O/ \
|
35 |
+
--report_logger_path ./checkpoint/finetuned_models/MCIO_protocol/ICM2O/performance.csv \
|
36 |
+
--config O \
|
37 |
+
```
|
38 |
+
|