Kleber commited on
Commit
44a2672
1 Parent(s): 3299200

Upload . with huggingface_hub

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. SE_checkpoint.pth.tar +3 -0
  3. best_model.pth +3 -0
  4. config.json +269 -0
  5. config_se.json +119 -0
  6. speakers.pth +3 -0
.gitattributes CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ SE_checkpoint.pth.tar filter=lfs diff=lfs merge=lfs -text
SE_checkpoint.pth.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f96efb20cbeeefd81fd8336d7f0155bf8902f82f9474e58ccb19d9e12345172
3
+ size 44610930
best_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53db69e5201488caf85a379ea7f740636d306abe3e9381dfbda1d1a5ef4e9b22
3
+ size 1039885016
config.json ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_path": "/workspace/output_dir/",
3
+ "logger_uri": null,
4
+ "run_name": "YourTTS-RW",
5
+ "project_name": "YourTTS",
6
+ "run_description": "\n - Original YourTTS trained using bible-dataset dataset\n ",
7
+ "print_step": 50,
8
+ "plot_step": 100,
9
+ "model_param_stats": false,
10
+ "wandb_entity": null,
11
+ "dashboard_logger": "tensorboard",
12
+ "log_model_step": 1000,
13
+ "save_step": 1000,
14
+ "save_n_checkpoints": 100,
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
+ "run_eval_steps": null,
23
+ "distributed_backend": "nccl",
24
+ "distributed_url": "tcp://localhost:54321",
25
+ "mixed_precision": false,
26
+ "epochs": 100,
27
+ "batch_size": 32,
28
+ "eval_batch_size": 32,
29
+ "grad_clip": [
30
+ 1000,
31
+ 1000
32
+ ],
33
+ "scheduler_after_epoch": true,
34
+ "lr": 0.001,
35
+ "optimizer": "AdamW",
36
+ "optimizer_params": {
37
+ "betas": [
38
+ 0.8,
39
+ 0.99
40
+ ],
41
+ "eps": 1e-09,
42
+ "weight_decay": 0.01
43
+ },
44
+ "lr_scheduler": null,
45
+ "lr_scheduler_params": {},
46
+ "use_grad_scaler": false,
47
+ "cudnn_enable": true,
48
+ "cudnn_deterministic": false,
49
+ "cudnn_benchmark": false,
50
+ "training_seed": 54321,
51
+ "model": "vits",
52
+ "num_loader_workers": 8,
53
+ "num_eval_loader_workers": 0,
54
+ "use_noise_augment": false,
55
+ "audio": {
56
+ "fft_size": 1024,
57
+ "sample_rate": 24000,
58
+ "win_length": 1024,
59
+ "hop_length": 256,
60
+ "num_mels": 80,
61
+ "mel_fmin": 0.0,
62
+ "mel_fmax": null
63
+ },
64
+ "use_phonemes": false,
65
+ "phonemizer": null,
66
+ "phoneme_language": null,
67
+ "compute_input_seq_cache": true,
68
+ "text_cleaner": null,
69
+ "enable_eos_bos_chars": false,
70
+ "test_sentences_file": "",
71
+ "phoneme_cache_path": null,
72
+ "characters": {
73
+ "characters_class": "TTS.tts.models.vits.VitsCharacters",
74
+ "vocab_dict": null,
75
+ "pad": "_",
76
+ "eos": "&",
77
+ "bos": "*",
78
+ "blank": null,
79
+ "characters": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\u00af\u00b7\u00df\u00e0\u00e1\u00e2\u00e3\u00e4\u00e6\u00e7\u00e8\u00e9\u00ea\u00eb\u00ec\u00ed\u00ee\u00ef\u00f1\u00f2\u00f3\u00f4\u00f5\u00f6\u00f9\u00fa\u00fb\u00fc\u00ff\u0101\u0105\u0107\u0113\u0119\u011b\u012b\u0131\u0142\u0144\u014d\u0151\u0153\u015b\u016b\u0171\u017a\u017c\u01ce\u01d0\u01d2\u01d4\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0451\u0454\u0456\u0457\u0491\u2013!'(),-.:;? ",
80
+ "punctuations": "!'(),-.:;? ",
81
+ "phonemes": "",
82
+ "is_unique": true,
83
+ "is_sorted": true
84
+ },
85
+ "add_blank": true,
86
+ "batch_group_size": 48,
87
+ "loss_masking": null,
88
+ "min_audio_len": 1,
89
+ "max_audio_len": 1200000,
90
+ "min_text_len": 1,
91
+ "max_text_len": Infinity,
92
+ "compute_f0": false,
93
+ "compute_linear_spec": true,
94
+ "precompute_num_workers": 12,
95
+ "start_by_longest": true,
96
+ "shuffle": false,
97
+ "drop_last": false,
98
+ "datasets": [
99
+ {
100
+ "formatter": "ljspeech",
101
+ "dataset_name": "kin_bible",
102
+ "path": "/workspace/segmented_24k/",
103
+ "meta_file_train": "train_metadata.csv",
104
+ "ignored_speakers": null,
105
+ "language": "rw",
106
+ "meta_file_val": "val_metadata.csv",
107
+ "meta_file_attn_mask": ""
108
+ }
109
+ ],
110
+ "test_sentences": [
111
+ [
112
+ "It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent."
113
+ ],
114
+ [
115
+ "Be a voice, not an echo."
116
+ ],
117
+ [
118
+ "I'm sorry Dave. I'm afraid I can't do that."
119
+ ],
120
+ [
121
+ "This cake is great. It's so delicious and moist."
122
+ ],
123
+ [
124
+ "Prior to November 22, 1963."
125
+ ]
126
+ ],
127
+ "eval_split_max_size": 256,
128
+ "eval_split_size": 0.01,
129
+ "use_speaker_weighted_sampler": false,
130
+ "speaker_weighted_sampler_alpha": 1.0,
131
+ "use_language_weighted_sampler": false,
132
+ "language_weighted_sampler_alpha": 1.0,
133
+ "use_length_weighted_sampler": false,
134
+ "length_weighted_sampler_alpha": 1.0,
135
+ "model_args": {
136
+ "num_chars": 165,
137
+ "out_channels": 513,
138
+ "spec_segment_size": 32,
139
+ "hidden_channels": 192,
140
+ "hidden_channels_ffn_text_encoder": 768,
141
+ "num_heads_text_encoder": 2,
142
+ "num_layers_text_encoder": 10,
143
+ "kernel_size_text_encoder": 3,
144
+ "dropout_p_text_encoder": 0.1,
145
+ "dropout_p_duration_predictor": 0.5,
146
+ "kernel_size_posterior_encoder": 5,
147
+ "dilation_rate_posterior_encoder": 1,
148
+ "num_layers_posterior_encoder": 16,
149
+ "kernel_size_flow": 5,
150
+ "dilation_rate_flow": 1,
151
+ "num_layers_flow": 4,
152
+ "resblock_type_decoder": "2",
153
+ "resblock_kernel_sizes_decoder": [
154
+ 3,
155
+ 7,
156
+ 11
157
+ ],
158
+ "resblock_dilation_sizes_decoder": [
159
+ [
160
+ 1,
161
+ 3,
162
+ 5
163
+ ],
164
+ [
165
+ 1,
166
+ 3,
167
+ 5
168
+ ],
169
+ [
170
+ 1,
171
+ 3,
172
+ 5
173
+ ]
174
+ ],
175
+ "upsample_rates_decoder": [
176
+ 8,
177
+ 8,
178
+ 2,
179
+ 2
180
+ ],
181
+ "upsample_initial_channel_decoder": 512,
182
+ "upsample_kernel_sizes_decoder": [
183
+ 16,
184
+ 16,
185
+ 4,
186
+ 4
187
+ ],
188
+ "periods_multi_period_discriminator": [
189
+ 2,
190
+ 3,
191
+ 5,
192
+ 7,
193
+ 11
194
+ ],
195
+ "use_sdp": true,
196
+ "noise_scale": 1.0,
197
+ "inference_noise_scale": 0.667,
198
+ "length_scale": 1,
199
+ "noise_scale_dp": 1.0,
200
+ "inference_noise_scale_dp": 1.0,
201
+ "max_inference_len": null,
202
+ "init_discriminator": true,
203
+ "use_spectral_norm_disriminator": false,
204
+ "use_speaker_embedding": false,
205
+ "num_speakers": 0,
206
+ "speakers_file": "/workspace/output_dir/YourTTS-RW-December-22-2022_11+10PM-0000000/speakers.pth",
207
+ "d_vector_file": [
208
+ "/workspace/segmented_24k/speakers.pth"
209
+ ],
210
+ "speaker_embedding_channels": 256,
211
+ "use_d_vector_file": true,
212
+ "d_vector_dim": 512,
213
+ "detach_dp_input": true,
214
+ "use_language_embedding": false,
215
+ "embedded_language_dim": 4,
216
+ "num_languages": 0,
217
+ "language_ids_file": null,
218
+ "use_speaker_encoder_as_loss": false,
219
+ "speaker_encoder_config_path": "",
220
+ "speaker_encoder_model_path": "",
221
+ "condition_dp_on_speaker": true,
222
+ "freeze_encoder": false,
223
+ "freeze_DP": false,
224
+ "freeze_PE": false,
225
+ "freeze_flow_decoder": false,
226
+ "freeze_waveform_decoder": false,
227
+ "encoder_sample_rate": null,
228
+ "interpolate_z": true,
229
+ "reinit_DP": false,
230
+ "reinit_text_encoder": false
231
+ },
232
+ "lr_gen": 0.0002,
233
+ "lr_disc": 0.0002,
234
+ "lr_scheduler_gen": "ExponentialLR",
235
+ "lr_scheduler_gen_params": {
236
+ "gamma": 0.999875,
237
+ "last_epoch": -1
238
+ },
239
+ "lr_scheduler_disc": "ExponentialLR",
240
+ "lr_scheduler_disc_params": {
241
+ "gamma": 0.999875,
242
+ "last_epoch": -1
243
+ },
244
+ "kl_loss_alpha": 1.0,
245
+ "disc_loss_alpha": 1.0,
246
+ "gen_loss_alpha": 1.0,
247
+ "feat_loss_alpha": 1.0,
248
+ "mel_loss_alpha": 45.0,
249
+ "dur_loss_alpha": 1.0,
250
+ "speaker_encoder_loss_alpha": 9.0,
251
+ "return_wav": true,
252
+ "use_weighted_sampler": true,
253
+ "weighted_sampler_attrs": {
254
+ "speaker_name": 1.0
255
+ },
256
+ "weighted_sampler_multipliers": {},
257
+ "r": 1,
258
+ "num_speakers": 0,
259
+ "use_speaker_embedding": false,
260
+ "speakers_file": "/workspace/output_dir/YourTTS-RW-December-22-2022_11+10PM-0000000/speakers.pth",
261
+ "speaker_embedding_channels": 256,
262
+ "language_ids_file": null,
263
+ "use_language_embedding": false,
264
+ "use_d_vector_file": true,
265
+ "d_vector_file": [
266
+ "/workspace/segmented_24k/speakers.pth"
267
+ ],
268
+ "d_vector_dim": 512
269
+ }
config_se.json ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "speaker_encoder",
3
+ "run_name": "speaker_encoder",
4
+ "run_description": "resnet speaker encoder trained with commonvoice all languages dev and train, Voxceleb 1 dev and Voxceleb 2 dev",
5
+ "epochs": 100000,
6
+ "batch_size": null,
7
+ "eval_batch_size": null,
8
+ "mixed_precision": false,
9
+ "run_eval": true,
10
+ "test_delay_epochs": 0,
11
+ "print_eval": false,
12
+ "print_step": 50,
13
+ "tb_plot_step": 100,
14
+ "tb_model_param_stats": false,
15
+ "save_step": 1000,
16
+ "checkpoint": true,
17
+ "keep_all_best": false,
18
+ "keep_after": 10000,
19
+ "num_loader_workers": 8,
20
+ "num_val_loader_workers": 0,
21
+ "use_noise_augment": false,
22
+ "output_path": "../checkpoints/speaker_encoder/language_balanced/normalized/angleproto-4-samples-by-speakers/",
23
+ "distributed_backend": "nccl",
24
+ "distributed_url": "tcp://localhost:54321",
25
+ "audio": {
26
+ "fft_size": 512,
27
+ "win_length": 400,
28
+ "hop_length": 160,
29
+ "frame_shift_ms": null,
30
+ "frame_length_ms": null,
31
+ "stft_pad_mode": "reflect",
32
+ "sample_rate": 24000,
33
+ "resample": false,
34
+ "preemphasis": 0.97,
35
+ "ref_level_db": 20,
36
+ "do_sound_norm": false,
37
+ "do_trim_silence": false,
38
+ "trim_db": 60,
39
+ "power": 1.5,
40
+ "griffin_lim_iters": 60,
41
+ "num_mels": 64,
42
+ "mel_fmin": 0.0,
43
+ "mel_fmax": 8000.0,
44
+ "spec_gain": 20,
45
+ "signal_norm": false,
46
+ "min_level_db": -100,
47
+ "symmetric_norm": false,
48
+ "max_norm": 4.0,
49
+ "clip_norm": false,
50
+ "stats_path": null
51
+ },
52
+ "datasets": [
53
+ {
54
+ "name": "voxceleb2",
55
+ "path": "/workspace/scratch/ecasanova/datasets/VoxCeleb/vox2_dev_aac/",
56
+ "meta_file_train": null,
57
+ "ununsed_speakers": null,
58
+ "meta_file_val": null,
59
+ "meta_file_attn_mask": "",
60
+ "language": "voxceleb"
61
+ }
62
+ ],
63
+ "model_params": {
64
+ "model_name": "resnet",
65
+ "input_dim": 64,
66
+ "use_torch_spec": true,
67
+ "log_input": true,
68
+ "proj_dim": 512
69
+ },
70
+ "audio_augmentation": {
71
+ "p": 0.5,
72
+ "rir": {
73
+ "rir_path": "/workspace/store/ecasanova/ComParE/RIRS_NOISES/simulated_rirs/",
74
+ "conv_mode": "full"
75
+ },
76
+ "additive": {
77
+ "sounds_path": "/workspace/store/ecasanova/ComParE/musan/",
78
+ "speech": {
79
+ "min_snr_in_db": 13,
80
+ "max_snr_in_db": 20,
81
+ "min_num_noises": 1,
82
+ "max_num_noises": 1
83
+ },
84
+ "noise": {
85
+ "min_snr_in_db": 0,
86
+ "max_snr_in_db": 15,
87
+ "min_num_noises": 1,
88
+ "max_num_noises": 1
89
+ },
90
+ "music": {
91
+ "min_snr_in_db": 5,
92
+ "max_snr_in_db": 15,
93
+ "min_num_noises": 1,
94
+ "max_num_noises": 1
95
+ }
96
+ },
97
+ "gaussian": {
98
+ "p": 0.0,
99
+ "min_amplitude": 0.0,
100
+ "max_amplitude": 1e-05
101
+ }
102
+ },
103
+ "storage": {
104
+ "sample_from_storage_p": 0.5,
105
+ "storage_size": 40
106
+ },
107
+ "max_train_step": 1000000,
108
+ "loss": "angleproto",
109
+ "grad_clip": 3.0,
110
+ "lr": 0.0001,
111
+ "lr_decay": false,
112
+ "warmup_steps": 4000,
113
+ "wd": 1e-06,
114
+ "steps_plot_stats": 100,
115
+ "num_speakers_in_batch": 100,
116
+ "num_utters_per_speaker": 4,
117
+ "skip_speakers": true,
118
+ "voice_len": 2.0
119
+ }
speakers.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a40976a3e379f7468f60f383ea15630532d3bc71e0f2ec38008169e9d1504f0
3
+ size 431