This repository has been archived by the owner on Dec 28, 2024. It is now read-only.
generated from victoresque/pytorch-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_task21.json
71 lines (65 loc) · 1.49 KB
/
config_task21.json
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
{
"name": "Audio_Resp_21",
"n_gpu": 1,
"arch": {
"type": "ASTModel",
"args": {
"label_dim":3,
"input_fdim":128,
"input_tdim":768,
"audioset_pretrain": true
}
},
"data_loader": {
"type": "RespDataLoader",
"args":{
"data_dir": "data/SPRSound/",
"batch_size": 16,
"shuffle": true,
"validation_split": 0.2,
"num_workers": 2,
"task":2,
"level":1,
"input_dir":"processed_ast_wav2vec"
}
},
"optimizer": {
"type": "Adam",
"args":{
"lr": 0.0001,
"weight_decay": 0,
"amsgrad": true
}
},
"loss": {
"type": "cross_entropy",
"args": {
"weight": [0.2, 0.5, 0.3]
}
},
"metrics": [
"accuracy", "specificity", "sensitivity_task2", "score_task2"
],
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 50,
"gamma": 0.1
}
},
"trainer": {
"epochs": 100,
"save_dir": "saved/",
"save_period": 1,
"verbosity": 2,
"monitor": "min val_loss",
"early_stop": 10,
"tensorboard": true,
"wandb": false
},
"main": {
"task_level": 21,
"wav_dir": "testcase/task2_wav/",
"out_file": "testcase/my_output/task21_output.json"
}
}