trysem commited on
Commit
837900b
·
verified ·
1 Parent(s): a4e2053

Upload 5 files

Browse files
fastpitch/best_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:669f75b7a9f64f07fb516e62ff6c2e39ecf71e8dff9d52bd0993960eb633145a
3
+ size 637332589
fastpitch/config.json ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_path": "output_indic_fastpitch/ml",
3
+ "logger_uri": null,
4
+ "run_name": "ml_fastpitch_indictts_all_align_off",
5
+ "project_name": "indic-fastpitch-stage2",
6
+ "run_description": "align_off",
7
+ "print_step": 100,
8
+ "plot_step": 100,
9
+ "model_param_stats": false,
10
+ "wandb_entity": "indic-asr",
11
+ "dashboard_logger": "wandb",
12
+ "log_model_step": 10000,
13
+ "save_step": 10000,
14
+ "save_n_checkpoints": 1,
15
+ "save_checkpoints": true,
16
+ "save_all_best": false,
17
+ "save_best_after": 10000,
18
+ "target_loss": null,
19
+ "print_eval": false,
20
+ "test_delay_epochs": 0,
21
+ "run_eval": true,
22
+ "distributed_backend": "nccl",
23
+ "distributed_url": "tcp://localhost:54321",
24
+ "mixed_precision": true,
25
+ "epochs": 1000,
26
+ "batch_size": 32,
27
+ "eval_batch_size": 32,
28
+ "grad_clip": 5.0,
29
+ "scheduler_after_epoch": true,
30
+ "lr": 0.0001,
31
+ "optimizer": "Adam",
32
+ "optimizer_params": {
33
+ "betas": [
34
+ 0.9,
35
+ 0.998
36
+ ],
37
+ "weight_decay": 1e-06
38
+ },
39
+ "lr_scheduler": "NoamLR",
40
+ "lr_scheduler_params": {
41
+ "warmup_steps": 4000
42
+ },
43
+ "use_grad_scaler": false,
44
+ "cudnn_enable": true,
45
+ "cudnn_deterministic": false,
46
+ "cudnn_benchmark": false,
47
+ "training_seed": 54321,
48
+ "model": "fast_pitch",
49
+ "num_loader_workers": 0,
50
+ "num_eval_loader_workers": 0,
51
+ "use_noise_augment": false,
52
+ "audio": {
53
+ "fft_size": 1024,
54
+ "win_length": 1024,
55
+ "hop_length": 256,
56
+ "frame_shift_ms": null,
57
+ "frame_length_ms": null,
58
+ "stft_pad_mode": "reflect",
59
+ "sample_rate": 22050,
60
+ "resample": false,
61
+ "preemphasis": 0.0,
62
+ "ref_level_db": 20,
63
+ "do_sound_norm": false,
64
+ "log_func": "np.log",
65
+ "do_trim_silence": true,
66
+ "trim_db": 60.0,
67
+ "do_rms_norm": false,
68
+ "db_level": null,
69
+ "power": 1.5,
70
+ "griffin_lim_iters": 60,
71
+ "num_mels": 80,
72
+ "mel_fmin": 0.0,
73
+ "mel_fmax": 8000,
74
+ "spec_gain": 1.0,
75
+ "do_amp_to_db_linear": true,
76
+ "do_amp_to_db_mel": true,
77
+ "pitch_fmax": 640.0,
78
+ "pitch_fmin": 0.0,
79
+ "signal_norm": false,
80
+ "min_level_db": -100,
81
+ "symmetric_norm": true,
82
+ "max_norm": 4.0,
83
+ "clip_norm": true,
84
+ "stats_path": null
85
+ },
86
+ "use_phonemes": false,
87
+ "phonemizer": null,
88
+ "phoneme_language": "en-us",
89
+ "compute_input_seq_cache": false,
90
+ "text_cleaner": "multilingual_cleaners",
91
+ "enable_eos_bos_chars": false,
92
+ "test_sentences_file": "",
93
+ "phoneme_cache_path": "output_indic_fastpitch/ml/phoneme_cache",
94
+ "characters": {
95
+ "characters_class": "TTS.tts.models.vits.VitsCharacters",
96
+ "vocab_dict": null,
97
+ "pad": "<PAD>",
98
+ "eos": "<EOS>",
99
+ "bos": "<BOS>",
100
+ "blank": "<BLNK>",
101
+ "characters": " ,?\u0d02\u0d03\u0d05\u0d06\u0d07\u0d08\u0d09\u0d0a\u0d0b\u0d0e\u0d0f\u0d10\u0d12\u0d13\u0d14\u0d15\u0d16\u0d17\u0d18\u0d19\u0d1a\u0d1b\u0d1c\u0d1d\u0d1e\u0d1f\u0d20\u0d21\u0d22\u0d23\u0d24\u0d25\u0d26\u0d27\u0d28\u0d2a\u0d2b\u0d2c\u0d2d\u0d2e\u0d2f\u0d30\u0d31\u0d32\u0d33\u0d34\u0d35\u0d36\u0d37\u0d38\u0d39\u0d3e\u0d3f\u0d40\u0d41\u0d42\u0d43\u0d46\u0d47\u0d48\u0d4a\u0d4b\u0d4c\u0d4d\u0d57\u0d7a\u0d7b\u0d7c\u0d7d\u0d7e",
102
+ "punctuations": "!\u00a1'(),-.:;\u00bf? ",
103
+ "phonemes": null,
104
+ "is_unique": true,
105
+ "is_sorted": true
106
+ },
107
+ "add_blank": false,
108
+ "batch_group_size": 0,
109
+ "loss_masking": null,
110
+ "sort_by_audio_len": true,
111
+ "min_audio_len": 1,
112
+ "max_audio_len": 441000,
113
+ "min_text_len": 1,
114
+ "max_text_len": 400,
115
+ "compute_f0": true,
116
+ "compute_linear_spec": false,
117
+ "precompute_num_workers": 0,
118
+ "start_by_longest": false,
119
+ "datasets": [
120
+ {
121
+ "name": "indictts",
122
+ "path": "/home/ttsteam/datasets/indictts/ml",
123
+ "meta_file_train": "metadata_train.csv",
124
+ "ignored_speakers": null,
125
+ "language": "ml",
126
+ "meta_file_val": "metadata_test.csv",
127
+ "meta_file_attn_mask": ""
128
+ }
129
+ ],
130
+ "test_sentences": [
131
+ "\u0d36\u0d3f\u0d32\u0d3e\u0d2f\u0d41\u0d17\u0d15\u0d3e\u0d32\u0d02 \u0d2e\u0d41\u0d24\u0d7d \u0d2e\u0d28\u0d41\u0d37\u0d4d\u0d2f\u0d7c \u0d1c\u0d4d\u0d2f\u0d3e\u0d2e\u0d3f\u0d24\u0d40\u0d2f \u0d30\u0d42\u0d2a\u0d19\u0d4d\u0d19\u0d7e \u0d09\u0d2a\u0d2f\u0d4b\u0d17\u0d3f\u0d1a\u0d4d\u0d1a\u0d41\u0d35\u0d30\u0d41\u0d28\u0d4d\u0d28\u0d41",
132
+ "\u0d35\u0d3e\u0d39\u0d28\u0d3e\u0d2a\u0d15\u0d1f\u0d24\u0d4d\u0d24\u0d3f\u0d7d \u0d2a\u0d30\u0d41\u0d15\u0d4d\u0d15\u0d47\u0d31\u0d4d\u0d31 \u0d05\u0d27\u0d4d\u0d2f\u0d3e\u0d2a\u0d3f\u0d15 \u0d2e\u0d30\u0d3f\u0d1a\u0d4d\u0d1a\u0d41"
133
+ ],
134
+ "eval_split_max_size": null,
135
+ "eval_split_size": 0.01,
136
+ "use_speaker_weighted_sampler": false,
137
+ "speaker_weighted_sampler_alpha": 1.0,
138
+ "use_language_weighted_sampler": false,
139
+ "language_weighted_sampler_alpha": 1.0,
140
+ "use_length_weighted_sampler": false,
141
+ "length_weighted_sampler_alpha": 1.0,
142
+ "base_model": "forward_tts",
143
+ "model_args": {
144
+ "num_chars": 88,
145
+ "out_channels": 80,
146
+ "hidden_channels": 512,
147
+ "use_aligner": true,
148
+ "use_pitch": true,
149
+ "pitch_predictor_hidden_channels": 256,
150
+ "pitch_predictor_kernel_size": 3,
151
+ "pitch_predictor_dropout_p": 0.1,
152
+ "pitch_embedding_kernel_size": 3,
153
+ "duration_predictor_hidden_channels": 256,
154
+ "duration_predictor_kernel_size": 3,
155
+ "duration_predictor_dropout_p": 0.1,
156
+ "positional_encoding": true,
157
+ "poisitonal_encoding_use_scale": true,
158
+ "length_scale": 1,
159
+ "encoder_type": "fftransformer",
160
+ "encoder_params": {
161
+ "hidden_channels_ffn": 1024,
162
+ "num_heads": 1,
163
+ "num_layers": 6,
164
+ "dropout_p": 0.1
165
+ },
166
+ "decoder_type": "fftransformer",
167
+ "decoder_params": {
168
+ "hidden_channels_ffn": 1024,
169
+ "num_heads": 1,
170
+ "num_layers": 6,
171
+ "dropout_p": 0.1
172
+ },
173
+ "detach_duration_predictor": false,
174
+ "max_duration": 75,
175
+ "num_speakers": 2,
176
+ "use_speaker_embedding": true,
177
+ "speakers_file": "models/v1/ml/fastpitch/speakers.pth",
178
+ "use_d_vector_file": false,
179
+ "d_vector_dim": 512,
180
+ "d_vector_file": null,
181
+ "use_speaker_encoder_as_loss": false,
182
+ "speaker_encoder_config_path": "",
183
+ "speaker_encoder_model_path": "",
184
+ "vocoder_path": null,
185
+ "vocoder_config_path": null
186
+ },
187
+ "return_wav": false,
188
+ "num_speakers": 2,
189
+ "speakers_file": "models/v1/ml/fastpitch/speakers.pth",
190
+ "use_speaker_embedding": true,
191
+ "use_d_vector_file": false,
192
+ "d_vector_file": "",
193
+ "d_vector_dim": 512,
194
+ "spec_loss_type": "mse",
195
+ "duration_loss_type": "mse",
196
+ "use_ssim_loss": false,
197
+ "ssim_loss_alpha": 1.0,
198
+ "spec_loss_alpha": 1.0,
199
+ "aligner_loss_alpha": 1.0,
200
+ "pitch_loss_alpha": 0.1,
201
+ "dur_loss_alpha": 0.1,
202
+ "binary_align_loss_alpha": 0.1,
203
+ "spk_encoder_loss_alpha": 0.1,
204
+ "binary_loss_warmup_epochs": 150,
205
+ "aligner_epochs": 0,
206
+ "min_seq_len": 13,
207
+ "max_seq_len": 500000,
208
+ "r": 1,
209
+ "f0_cache_path": "output_indic_fastpitch/ml/f0_cache"
210
+ }
fastpitch/speakers.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f665e358b34b232fb27f7c8cd3968fcd47784a7be065ae127f611c33ee809bea
3
+ size 431
hifigan/best_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aba37e31c72f088cd6d73c5782d9f89bf024a6d355158056fa398cd806cf8efc
3
+ size 1016384316
hifigan/config.json ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_path": "indic_vocoders",
3
+ "logger_uri": null,
4
+ "run_name": "ml_hifigan_all",
5
+ "project_name": "indic-vocoders",
6
+ "run_description": "None",
7
+ "print_step": 100,
8
+ "plot_step": 100,
9
+ "model_param_stats": false,
10
+ "wandb_entity": "indic-asr",
11
+ "dashboard_logger": "wandb",
12
+ "log_model_step": null,
13
+ "save_step": 10000,
14
+ "save_n_checkpoints": 1,
15
+ "save_checkpoints": true,
16
+ "save_all_best": false,
17
+ "save_best_after": 10000,
18
+ "target_loss": "loss_1",
19
+ "print_eval": false,
20
+ "test_delay_epochs": 0,
21
+ "run_eval": true,
22
+ "distributed_backend": "nccl",
23
+ "distributed_url": "tcp://localhost:10008",
24
+ "mixed_precision": true,
25
+ "epochs": 5000,
26
+ "batch_size": 32,
27
+ "eval_batch_size": 32,
28
+ "grad_clip": [
29
+ 5,
30
+ 5
31
+ ],
32
+ "scheduler_after_epoch": true,
33
+ "lr": 0.0001,
34
+ "optimizer": "AdamW",
35
+ "optimizer_params": {
36
+ "betas": [
37
+ 0.8,
38
+ 0.99
39
+ ],
40
+ "weight_decay": 0.0
41
+ },
42
+ "lr_scheduler": null,
43
+ "lr_scheduler_params": null,
44
+ "use_grad_scaler": false,
45
+ "cudnn_enable": true,
46
+ "cudnn_deterministic": false,
47
+ "cudnn_benchmark": false,
48
+ "training_seed": 54321,
49
+ "model": "hifigan",
50
+ "num_loader_workers": 8,
51
+ "num_eval_loader_workers": 8,
52
+ "use_noise_augment": true,
53
+ "audio": {
54
+ "fft_size": 1024,
55
+ "win_length": 1024,
56
+ "hop_length": 256,
57
+ "frame_shift_ms": null,
58
+ "frame_length_ms": null,
59
+ "stft_pad_mode": "reflect",
60
+ "sample_rate": 22050,
61
+ "resample": false,
62
+ "preemphasis": 0.0,
63
+ "ref_level_db": 20,
64
+ "do_sound_norm": false,
65
+ "log_func": "np.log",
66
+ "do_trim_silence": true,
67
+ "trim_db": 60.0,
68
+ "do_rms_norm": false,
69
+ "db_level": null,
70
+ "power": 1.5,
71
+ "griffin_lim_iters": 60,
72
+ "num_mels": 80,
73
+ "mel_fmin": 0.0,
74
+ "mel_fmax": 8000,
75
+ "spec_gain": 1.0,
76
+ "do_amp_to_db_linear": true,
77
+ "do_amp_to_db_mel": true,
78
+ "pitch_fmax": 640.0,
79
+ "pitch_fmin": 0.0,
80
+ "signal_norm": false,
81
+ "min_level_db": -100,
82
+ "symmetric_norm": true,
83
+ "max_norm": 4.0,
84
+ "clip_norm": true,
85
+ "stats_path": null
86
+ },
87
+ "eval_split_size": 10,
88
+ "data_path": "../../datasets/indictts/ml",
89
+ "feature_path": null,
90
+ "seq_len": 8192,
91
+ "pad_short": 2000,
92
+ "conv_pad": 0,
93
+ "use_cache": false,
94
+ "wd": 1e-06,
95
+ "use_stft_loss": false,
96
+ "use_subband_stft_loss": false,
97
+ "use_mse_gan_loss": true,
98
+ "use_hinge_gan_loss": false,
99
+ "use_feat_match_loss": true,
100
+ "use_l1_spec_loss": true,
101
+ "stft_loss_weight": 0,
102
+ "subband_stft_loss_weight": 0,
103
+ "mse_G_loss_weight": 1,
104
+ "hinge_G_loss_weight": 0,
105
+ "feat_match_loss_weight": 108,
106
+ "l1_spec_loss_weight": 45,
107
+ "stft_loss_params": {
108
+ "n_ffts": [
109
+ 1024,
110
+ 2048,
111
+ 512
112
+ ],
113
+ "hop_lengths": [
114
+ 120,
115
+ 240,
116
+ 50
117
+ ],
118
+ "win_lengths": [
119
+ 600,
120
+ 1200,
121
+ 240
122
+ ]
123
+ },
124
+ "l1_spec_loss_params": {
125
+ "use_mel": true,
126
+ "sample_rate": 22050,
127
+ "n_fft": 1024,
128
+ "hop_length": 256,
129
+ "win_length": 1024,
130
+ "n_mels": 80,
131
+ "mel_fmin": 0.0,
132
+ "mel_fmax": null
133
+ },
134
+ "lr_gen": 0.0001,
135
+ "lr_disc": 0.0001,
136
+ "lr_scheduler_gen": "ExponentialLR",
137
+ "lr_scheduler_gen_params": {
138
+ "gamma": 0.999,
139
+ "last_epoch": -1
140
+ },
141
+ "lr_scheduler_disc": "ExponentialLR",
142
+ "lr_scheduler_disc_params": {
143
+ "gamma": 0.999,
144
+ "last_epoch": -1
145
+ },
146
+ "use_pqmf": false,
147
+ "diff_samples_for_G_and_D": false,
148
+ "discriminator_model": "hifigan_discriminator",
149
+ "generator_model": "hifigan_generator",
150
+ "generator_model_params": {
151
+ "upsample_factors": [
152
+ 8,
153
+ 8,
154
+ 2,
155
+ 2
156
+ ],
157
+ "upsample_kernel_sizes": [
158
+ 16,
159
+ 16,
160
+ 4,
161
+ 4
162
+ ],
163
+ "upsample_initial_channel": 512,
164
+ "resblock_kernel_sizes": [
165
+ 3,
166
+ 7,
167
+ 11
168
+ ],
169
+ "resblock_dilation_sizes": [
170
+ [
171
+ 1,
172
+ 3,
173
+ 5
174
+ ],
175
+ [
176
+ 1,
177
+ 3,
178
+ 5
179
+ ],
180
+ [
181
+ 1,
182
+ 3,
183
+ 5
184
+ ]
185
+ ],
186
+ "resblock_type": "1"
187
+ },
188
+ "github_branch": "* main"
189
+ }