-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
82 lines (82 loc) · 2.49 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "FastSpeech2",
"n_gpu": 1,
"arch": {
"type": "FastSpeechModel",
"args": {
"vocab_size": 300,
"max_seq_len": 3000,
"encoder_dim": 256,
"encoder_n_layer": 4,
"encoder_head": 2,
"encoder_filter_size": 1024,
"decoder_dim": 256,
"decoder_n_layer": 4,
"decoder_head": 2,
"decoder_filter_size": 1024
}
},
"data": {
"train": {
"batch_size": 20,
"batch_expand_size": 24,
"num_workers": 5,
"datasets": [
{
"type": "LJDataset",
"args": {
"mel_ground_truth": "/kaggle/input/fastspeecch-dataset/data/data/mels",
"alignment_path": "/kaggle/input/fastspeecch-dataset/data/data/alignments",
"pitch_path": "/kaggle/input/fastspeecch-dataset/data/data/pitch",
"energy_path": "/kaggle/input/fastspeecch-dataset/data/data/energy",
"data_path": "/kaggle/input/fastspeecch-dataset/data/data/train.txt",
"text_cleaners": ["english_cleaners"],
"batch_expand_size": 24
}
}
]
}
},
"test_texts": ["My name is Kirill Korolev and i am going to smash your head with my precious hammer",
"English you speak it motherfucker",
"pull up on the tank and e ya edu v boi" ],
"optimizer": {
"type": "AdamW",
"args": {
"lr": 3e-4,
"weight_decay": 1e-6,
"eps": 1e-7
}
},
"loss": {
"type": "FSLoss",
"args": {}
},
"lr_scheduler": {
"type": "OneCycleLR",
"args": {
"steps_per_epoch": 3000,
"epochs": 48,
"anneal_strategy": "cos",
"max_lr": 3e-4,
"pct_start": 0.1
}
},
"trainer": {
"batch_expand_size": 24,
"epochs": 48,
"save_dir": "saved/",
"save_period": 5,
"verbosity": 2,
"monitor": "min loss",
"early_stop": 50,
"visualize": "wandb",
"wandb_project": "fastspeech_project",
"run_name": "MyanSpeech2_fast_epoch",
"sample_rate": 22050,
"len_epoch": 3000,
"log_step": 50,
"grad_norm_clip": 1,
"batch_accum_steps": 1
}
}