forked from yjlolo/vae-audio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
62 lines (58 loc) · 1.36 KB
/
config.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
{
"name": "SpecVAE",
"n_gpu": 1,
"arch": {
"type": "SpecVAE",
"args": {
"input_size": [1, 64, 15],
"latent_dim": 32,
"is_featExtract": false,
"n_convLayer": 3,
"n_convChannel": [1, 32, 16, 8],
"filter_size": [1, 3, 3],
"stride": [1, 2, 2],
"n_fcLayer": 1,
"n_fcChannel": [256]
}
},
"data_loader": {
"type": "CollectDataLoader",
"args":{
"data_dir": ["dataset/myAudioDataset/m64-5s"],
"batch_size": 32,
"shuffle": true,
"validation_split": 0.1,
"num_workers": 0,
"subset": "train"
}
},
"optimizer": {
"type": "Adam",
"args":{
"lr": 0.001,
"weight_decay": 0,
"amsgrad": true
}
},
"loss": "vae_loss",
"metrics": [
"my_metric", "my_metric2"
],
"lr_scheduler": {
"type": "StepLR",
"args": {
"step_size": 50,
"gamma": 0.1
}
},
"trainer": {
"type": "SpecVaeTrainer",
"epochs": 1000,
"save_dir": "saved/",
"save_period": 10,
"verbosity": 2,
"monitor": "min val_loss",
"early_stop": 20,
"tensorboardX": true
}
}