-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.yaml
More file actions
31 lines (23 loc) · 994 Bytes
/
Copy pathconfig.yaml
File metadata and controls
31 lines (23 loc) · 994 Bytes
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
model_name: "Watson" # Moriaty_untrained, Moriaty, Lestrade, Watson, Sherlock, Polimi
finetune: True # To unfreeze all layers (from pretrained network)
path_model_moriaty: "./models/checkpoints/moriaty.pt"
path_model_moriaty_adv: "./models/checkpoints/moriaty_adv.pt"
path_model_watson: "./models/checkpoints/watson.pt"
path_model_watson_finetuned: "./models/checkpoints/watson_finetuned.pt"
path_model_sherlock: "./models/checkpoints/sherlock.pt"
train_path: "./data/train"
val_path: "./data/val"
test_path: "./data/test"
eval_res_path: "./eval_results"
test_adv_path: "./data/test_adv_v4" # test_adv_v1 (FGSM 0.01), test_adv_v2 (LinPGD 0.05), test_adv_v3 (LinPGD 0.01)
test_adv_bool: True # Evaluate on the adversarial test set (True, False)
seed: 1234
batch_size: 32
learning_rate: 0.00001
epochs_training: 20
epochs_adversarial_training: 20
early_stopping_patience: 3
num_workers: 24
adversarial_attack_type: "LinfPGD" # LinfPGD, PGD, FGSM
adversarial_eps: 0.05
wandb_logging: True