jvision commited on
Commit
46583ee
1 Parent(s): d1f94c0

first commit

Browse files
.gitattributes CHANGED
@@ -32,3 +32,7 @@ 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
+ checkpoint_85000.pth filter=lfs diff=lfs merge=lfs -text
36
+ supplemental/model_se.pth.tar filter=lfs diff=lfs merge=lfs -text
37
+ supplemental/speakers-combined.pth filter=lfs diff=lfs merge=lfs -text
38
+ supplemental/speakers-dataset.pth filter=lfs diff=lfs merge=lfs -text
checkpoint_85000.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b99cec673d8eeb5f82d4c570888bff4a94a1bd28f22fa52ed0a5a0f29998df67
3
+ size 1043207117
config.json ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_path": "/home/iguana/projects/java/tts-voicetrain/projects/art/output",
3
+ "logger_uri": null,
4
+ "run_name": "VCTK_European_English_Females",
5
+ "project_name": "YourTTS",
6
+ "run_description": "\n - Original YourTTS trained using VCTK 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": 5000,
14
+ "save_n_checkpoints": 2,
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": true,
26
+ "epochs": 1000,
27
+ "batch_size": 16,
28
+ "eval_batch_size": 16,
29
+ "grad_clip": [
30
+ 1000.0,
31
+ 1000.0
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": 16000,
58
+ "win_length": 1024,
59
+ "hop_length": 256,
60
+ "num_mels": 80,
61
+ "mel_fmin": 0,
62
+ "mel_fmax": null
63
+ },
64
+ "use_phonemes": false,
65
+ "phonemizer": "espeak",
66
+ "phoneme_language": "en-us",
67
+ "compute_input_seq_cache": true,
68
+ "text_cleaner": "multilingual_cleaners",
69
+ "enable_eos_bos_chars": false,
70
+ "test_sentences_file": "",
71
+ "phoneme_cache_path": "projects/art/phoneme_cache",
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": "iy\u0268\u0289\u026fu\u026a\u028f\u028ae\u00f8\u0258\u0259\u0275\u0264o\u025b\u0153\u025c\u025e\u028c\u0254\u00e6\u0250a\u0276\u0251\u0252\u1d7b\u0298\u0253\u01c0\u0257\u01c3\u0284\u01c2\u0260\u01c1\u029bpbtd\u0288\u0256c\u025fk\u0261q\u0262\u0294\u0274\u014b\u0272\u0273n\u0271m\u0299r\u0280\u2c71\u027e\u027d\u0278\u03b2fv\u03b8\u00f0sz\u0283\u0292\u0282\u0290\u00e7\u029dx\u0263\u03c7\u0281\u0127\u0295h\u0266\u026c\u026e\u028b\u0279\u027bj\u0270l\u026d\u028e\u029f\u02c8\u02cc\u02d0\u02d1\u028dw\u0265\u029c\u02a2\u02a1\u0255\u0291\u027a\u0267\u025a\u02de\u026b'\u0303' ",
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": 160000,
90
+ "min_text_len": 1,
91
+ "max_text_len": Infinity,
92
+ "compute_f0": false,
93
+ "compute_energy": false,
94
+ "compute_linear_spec": true,
95
+ "precompute_num_workers": 12,
96
+ "start_by_longest": true,
97
+ "shuffle": false,
98
+ "drop_last": false,
99
+ "datasets": [
100
+ {
101
+ "formatter": "vctk",
102
+ "dataset_name": "",
103
+ "path": "/home/iguana/projects/java/tts-voicetrain/dataset-library/VCTK_European_English_Females",
104
+ "meta_file_train": "",
105
+ "ignored_speakers": [],
106
+ "language": "en",
107
+ "phonemizer": "",
108
+ "meta_file_val": "",
109
+ "meta_file_attn_mask": ""
110
+ }
111
+ ],
112
+ "test_sentences": [
113
+ [
114
+ "This is an example of a sentence to be synthesized.",
115
+ "VCTK_p234",
116
+ null,
117
+ "en"
118
+ ],
119
+ [
120
+ "This is an example of a sentence to be synthesized.",
121
+ "VCTK_p238",
122
+ null,
123
+ "en"
124
+ ],
125
+ [
126
+ "This is an example of a sentence to be synthesized.",
127
+ "VCTK_p249",
128
+ null,
129
+ "en"
130
+ ],
131
+ [
132
+ "This is an example of a sentence to be synthesized.",
133
+ "VCTK_p253",
134
+ null,
135
+ "en"
136
+ ]
137
+ ],
138
+ "eval_split_max_size": 256,
139
+ "eval_split_size": 0.01,
140
+ "use_speaker_weighted_sampler": false,
141
+ "speaker_weighted_sampler_alpha": 1.0,
142
+ "use_language_weighted_sampler": false,
143
+ "language_weighted_sampler_alpha": 1.0,
144
+ "use_length_weighted_sampler": false,
145
+ "length_weighted_sampler_alpha": 1.0,
146
+ "model_args": {
147
+ "num_chars": 284,
148
+ "out_channels": 513,
149
+ "spec_segment_size": 32,
150
+ "hidden_channels": 192,
151
+ "hidden_channels_ffn_text_encoder": 768,
152
+ "num_heads_text_encoder": 2,
153
+ "num_layers_text_encoder": 10,
154
+ "kernel_size_text_encoder": 3,
155
+ "dropout_p_text_encoder": 0.1,
156
+ "dropout_p_duration_predictor": 0.5,
157
+ "kernel_size_posterior_encoder": 5,
158
+ "dilation_rate_posterior_encoder": 1,
159
+ "num_layers_posterior_encoder": 16,
160
+ "kernel_size_flow": 5,
161
+ "dilation_rate_flow": 1,
162
+ "num_layers_flow": 4,
163
+ "resblock_type_decoder": "2",
164
+ "resblock_kernel_sizes_decoder": [
165
+ 3,
166
+ 7,
167
+ 11
168
+ ],
169
+ "resblock_dilation_sizes_decoder": [
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
+ "upsample_rates_decoder": [
187
+ 8,
188
+ 8,
189
+ 2,
190
+ 2
191
+ ],
192
+ "upsample_initial_channel_decoder": 512,
193
+ "upsample_kernel_sizes_decoder": [
194
+ 16,
195
+ 16,
196
+ 4,
197
+ 4
198
+ ],
199
+ "periods_multi_period_discriminator": [
200
+ 2,
201
+ 3,
202
+ 5,
203
+ 7,
204
+ 11
205
+ ],
206
+ "use_sdp": true,
207
+ "noise_scale": 1.0,
208
+ "inference_noise_scale": 0.667,
209
+ "length_scale": 1.0,
210
+ "noise_scale_dp": 1.0,
211
+ "inference_noise_scale_dp": 1.0,
212
+ "max_inference_len": null,
213
+ "init_discriminator": true,
214
+ "use_spectral_norm_disriminator": false,
215
+ "use_speaker_embedding": false,
216
+ "num_speakers": 24,
217
+ "speakers_file": "/home/iguana/projects/java/tts-voicetrain/projects/art/output/VCTK_European_English_Females-May-21-2023_12+41AM-0000000/speakers.pth",
218
+ "d_vector_file": [
219
+ "/home/iguana/projects/java/tts-voicetrain/dataset-library/VCTK_European_English_Females/supplemental/speakers-base.json",
220
+ "/home/iguana/projects/java/tts-voicetrain/dataset-library/VCTK_European_English_Females/supplemental/speakers-dataset.pth"
221
+ ],
222
+ "speaker_embedding_channels": 256,
223
+ "use_d_vector_file": true,
224
+ "d_vector_dim": 512,
225
+ "detach_dp_input": true,
226
+ "use_language_embedding": true,
227
+ "embedded_language_dim": 4,
228
+ "num_languages": 3,
229
+ "language_ids_file": "/home/iguana/projects/java/tts-voicetrain/projects/art/output/VCTK_European_English_Females-May-21-2023_12+41AM-0000000/language_ids.json",
230
+ "use_speaker_encoder_as_loss": true,
231
+ "speaker_encoder_config_path": "/home/iguana/projects/java/tts-voicetrain/dataset-library/VCTK_European_English_Females/supplemental/config_se.json",
232
+ "speaker_encoder_model_path": "/home/iguana/projects/java/tts-voicetrain/dataset-library/VCTK_European_English_Females/supplemental/model_se.pth.tar",
233
+ "condition_dp_on_speaker": true,
234
+ "freeze_encoder": false,
235
+ "freeze_DP": false,
236
+ "freeze_PE": false,
237
+ "freeze_flow_decoder": false,
238
+ "freeze_waveform_decoder": false,
239
+ "encoder_sample_rate": null,
240
+ "interpolate_z": true,
241
+ "reinit_DP": false,
242
+ "reinit_text_encoder": false
243
+ },
244
+ "lr_gen": 0.0002,
245
+ "lr_disc": 0.0002,
246
+ "lr_scheduler_gen": "ExponentialLR",
247
+ "lr_scheduler_gen_params": {
248
+ "gamma": 0.999875,
249
+ "last_epoch": -1
250
+ },
251
+ "lr_scheduler_disc": "ExponentialLR",
252
+ "lr_scheduler_disc_params": {
253
+ "gamma": 0.999875,
254
+ "last_epoch": -1
255
+ },
256
+ "kl_loss_alpha": 1.0,
257
+ "disc_loss_alpha": 1.0,
258
+ "gen_loss_alpha": 1.0,
259
+ "feat_loss_alpha": 1.0,
260
+ "mel_loss_alpha": 45.0,
261
+ "dur_loss_alpha": 1.0,
262
+ "speaker_encoder_loss_alpha": 9.0,
263
+ "return_wav": true,
264
+ "use_weighted_sampler": false,
265
+ "weighted_sampler_attrs": {},
266
+ "weighted_sampler_multipliers": {},
267
+ "r": 1,
268
+ "num_speakers": 24,
269
+ "use_speaker_embedding": false,
270
+ "speakers_file": "/home/iguana/projects/java/tts-voicetrain/projects/art/output/VCTK_European_English_Females-May-21-2023_12+41AM-0000000/speakers.pth",
271
+ "speaker_embedding_channels": 256,
272
+ "language_ids_file": "/home/iguana/projects/java/tts-voicetrain/projects/art/output/VCTK_European_English_Females-May-21-2023_12+41AM-0000000/language_ids.json",
273
+ "use_language_embedding": true,
274
+ "use_d_vector_file": true,
275
+ "d_vector_file": [
276
+ "/home/iguana/projects/java/tts-voicetrain/dataset-library/VCTK_European_English_Females/supplemental/speakers-base.json",
277
+ "/home/iguana/projects/java/tts-voicetrain/dataset-library/VCTK_European_English_Females/supplemental/speakers-dataset.pth"
278
+ ],
279
+ "d_vector_dim": 512
280
+ }
prepare_model.py ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import os
3
+ import subprocess
4
+
5
+ # Load the data from the provided dictionary
6
+ data = {
7
+ "VCTK_p283": {
8
+ "age": 24,
9
+ "gender": "F",
10
+ "accents": "Irish",
11
+ "region": "Cork"
12
+ },
13
+ "VCTK_p266": {
14
+ "age": 22,
15
+ "gender": "F",
16
+ "accents": "Irish",
17
+ "region": "Athlone"
18
+ },
19
+ "VCTK_p288": {
20
+ "age": 22,
21
+ "gender": "F",
22
+ "accents": "Irish",
23
+ "region": "Dublin"
24
+ },
25
+ "VCTK_p295": {
26
+ "age": 23,
27
+ "gender": "F",
28
+ "accents": "Irish",
29
+ "region": "Dublin"
30
+ },
31
+ "VCTK_p293": {
32
+ "age": 22,
33
+ "gender": "F",
34
+ "accents": "NorthernIrish",
35
+ "region": "Belfast"
36
+ },
37
+ "VCTK_p238": {
38
+ "age": 22,
39
+ "gender": "F",
40
+ "accents": "NorthernIrish",
41
+ "region": "Belfast"
42
+ },
43
+ "VCTK_p261": {
44
+ "age": 26,
45
+ "gender": "F",
46
+ "accents": "NorthernIrish",
47
+ "region": "Belfast"
48
+ },
49
+ "VCTK_p351": {
50
+ "age": 21,
51
+ "gender": "F",
52
+ "accents": "NorthernIrish",
53
+ "region": "Derry"
54
+ },
55
+ "VCTK_p249": {
56
+ "age": 22,
57
+ "gender": "F",
58
+ "accents": "Scottish",
59
+ "region": "Aberdeen"
60
+ },
61
+ "VCTK_p234": {
62
+ "age": 22,
63
+ "gender": "F",
64
+ "accents": "Scottish",
65
+ "region": "West Dumfries"
66
+ },
67
+ "VCTK_p262": {
68
+ "age": 23,
69
+ "gender": "F",
70
+ "accents": "Scottish",
71
+ "region": "Edinburgh"
72
+ },
73
+ "VCTK_p264": {
74
+ "age": 23,
75
+ "gender": "F",
76
+ "accents": "Scottish",
77
+ "region": "West Lothian"
78
+ },
79
+ "VCTK_p265": {
80
+ "age": 23,
81
+ "gender": "F",
82
+ "accents": "Scottish",
83
+ "region": "Ross"
84
+ },
85
+ "VCTK_p253": {
86
+ "age": 22,
87
+ "gender": "F",
88
+ "accents": "Welsh",
89
+ "region": "Cardiff"
90
+ },
91
+ "VCTK_p313": {
92
+ "age": 24,
93
+ "gender": "F",
94
+ "accents": "Irish",
95
+ "region": "County Down"
96
+ },
97
+ "VCTK_p340": {
98
+ "age": 18,
99
+ "gender": "F",
100
+ "accents": "Irish",
101
+ "region": "Dublin"
102
+ },
103
+ "VCTK_p335": {
104
+ "age": 25,
105
+ "gender": "F",
106
+ "accents": "NewZealand",
107
+ "region": "English"
108
+ },
109
+ "VCTK_p280": {
110
+ "age": 25,
111
+ "gender": "F",
112
+ "accents": "France",
113
+ "region": "France"
114
+ }
115
+ }
116
+
117
+ # Convert the data to JSON format
118
+ json_data = json.dumps(data, indent=2)
119
+
120
+ # Save the JSON data to a file
121
+ with open('speakers-log.json', 'w') as file:
122
+ file.write(json_data)
123
+
124
+ # Run the TTS command to get the speaker indices
125
+ command = "tts --model_path checkpoint_85000.pth --config_path config.json --list_speaker_idxs | grep -vE '^(\s*\||\s*>|\s*$)'"
126
+ output = subprocess.check_output(command, shell=True, text=True)
127
+
128
+ # Parse the JSON output into a Python dictionary
129
+ speaker_indices = eval(output)
130
+
131
+ # Load the speaker IDs from speakers.json
132
+ with open('speakers-log.json', 'r') as file:
133
+ speaker_ids = json.load(file)
134
+
135
+ for speaker_idx in speaker_indices:
136
+ # # Remove the 'VCTK_' prefix
137
+ speaker_id = speaker_idx
138
+ # speaker_id = speaker_idx.replace('VCTK_', '')
139
+
140
+ # Lookup the speaker ID in the loaded speaker IDs
141
+ if speaker_id in speaker_ids:
142
+ speaker_id_json = speaker_ids[speaker_id]
143
+ else:
144
+ continue
145
+
146
+ # # Generate the TTS command to create the audio file
147
+ text = f"Hello, I am from {speaker_id_json['region']}. I hope that you will select my voice for your project. Thank you."
148
+ # # make samples directory if it doesn't exist
149
+ if not os.path.exists("samples"):
150
+ os.makedirs("samples")
151
+
152
+ out_path = f"samples/{speaker_id}.wav"
153
+ tts_command = f"tts --text \"{text}\" --model_path checkpoint_85000.pth --language_idx en --config_path config.json --speaker_idx \"{speaker_id}\" --out_path {out_path}"
154
+
155
+ # Execute the TTS command
156
+ os.system(tts_command)
samples/VCTK_p234.wav ADDED
Binary file (217 kB). View file
 
samples/VCTK_p238.wav ADDED
Binary file (275 kB). View file
 
samples/VCTK_p249.wav ADDED
Binary file (227 kB). View file
 
samples/VCTK_p253.wav ADDED
Binary file (215 kB). View file
 
samples/VCTK_p261.wav ADDED
Binary file (245 kB). View file
 
samples/VCTK_p262.wav ADDED
Binary file (260 kB). View file
 
samples/VCTK_p264.wav ADDED
Binary file (231 kB). View file
 
samples/VCTK_p265.wav ADDED
Binary file (274 kB). View file
 
samples/VCTK_p266.wav ADDED
Binary file (202 kB). View file
 
samples/VCTK_p280.wav ADDED
Binary file (226 kB). View file
 
samples/VCTK_p283.wav ADDED
Binary file (198 kB). View file
 
samples/VCTK_p288.wav ADDED
Binary file (221 kB). View file
 
samples/VCTK_p293.wav ADDED
Binary file (241 kB). View file
 
samples/VCTK_p295.wav ADDED
Binary file (216 kB). View file
 
samples/VCTK_p313.wav ADDED
Binary file (220 kB). View file
 
samples/VCTK_p335.wav ADDED
Binary file (251 kB). View file
 
samples/VCTK_p340.wav ADDED
Binary file (208 kB). View file
 
samples/VCTK_p351.wav ADDED
Binary file (212 kB). View file
 
speakers-log.json ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "VCTK_p283": {
3
+ "age": 24,
4
+ "gender": "F",
5
+ "accents": "Irish",
6
+ "region": "Cork"
7
+ },
8
+ "VCTK_p266": {
9
+ "age": 22,
10
+ "gender": "F",
11
+ "accents": "Irish",
12
+ "region": "Athlone"
13
+ },
14
+ "VCTK_p288": {
15
+ "age": 22,
16
+ "gender": "F",
17
+ "accents": "Irish",
18
+ "region": "Dublin"
19
+ },
20
+ "VCTK_p295": {
21
+ "age": 23,
22
+ "gender": "F",
23
+ "accents": "Irish",
24
+ "region": "Dublin"
25
+ },
26
+ "VCTK_p293": {
27
+ "age": 22,
28
+ "gender": "F",
29
+ "accents": "NorthernIrish",
30
+ "region": "Belfast"
31
+ },
32
+ "VCTK_p238": {
33
+ "age": 22,
34
+ "gender": "F",
35
+ "accents": "NorthernIrish",
36
+ "region": "Belfast"
37
+ },
38
+ "VCTK_p261": {
39
+ "age": 26,
40
+ "gender": "F",
41
+ "accents": "NorthernIrish",
42
+ "region": "Belfast"
43
+ },
44
+ "VCTK_p351": {
45
+ "age": 21,
46
+ "gender": "F",
47
+ "accents": "NorthernIrish",
48
+ "region": "Derry"
49
+ },
50
+ "VCTK_p249": {
51
+ "age": 22,
52
+ "gender": "F",
53
+ "accents": "Scottish",
54
+ "region": "Aberdeen"
55
+ },
56
+ "VCTK_p234": {
57
+ "age": 22,
58
+ "gender": "F",
59
+ "accents": "Scottish",
60
+ "region": "West Dumfries"
61
+ },
62
+ "VCTK_p262": {
63
+ "age": 23,
64
+ "gender": "F",
65
+ "accents": "Scottish",
66
+ "region": "Edinburgh"
67
+ },
68
+ "VCTK_p264": {
69
+ "age": 23,
70
+ "gender": "F",
71
+ "accents": "Scottish",
72
+ "region": "West Lothian"
73
+ },
74
+ "VCTK_p265": {
75
+ "age": 23,
76
+ "gender": "F",
77
+ "accents": "Scottish",
78
+ "region": "Ross"
79
+ },
80
+ "VCTK_p253": {
81
+ "age": 22,
82
+ "gender": "F",
83
+ "accents": "Welsh",
84
+ "region": "Cardiff"
85
+ },
86
+ "VCTK_p313": {
87
+ "age": 24,
88
+ "gender": "F",
89
+ "accents": "Irish",
90
+ "region": "County Down"
91
+ },
92
+ "VCTK_p340": {
93
+ "age": 18,
94
+ "gender": "F",
95
+ "accents": "Irish",
96
+ "region": "Dublin"
97
+ },
98
+ "VCTK_p335": {
99
+ "age": 25,
100
+ "gender": "F",
101
+ "accents": "NewZealand",
102
+ "region": "English"
103
+ },
104
+ "VCTK_p280": {
105
+ "age": 25,
106
+ "gender": "F",
107
+ "accents": "France",
108
+ "region": "France"
109
+ }
110
+ }
supplemental/config_se.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 16000,
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
+ "do_rms_norm": true,
52
+ "db_level": -27.0
53
+ },
54
+ "datasets": [
55
+ {
56
+ "name": "voxceleb2",
57
+ "path": "/workspace/scratch/ecasanova/datasets/VoxCeleb/vox2_dev_aac/",
58
+ "meta_file_train": null,
59
+ "ununsed_speakers": null,
60
+ "meta_file_val": null,
61
+ "meta_file_attn_mask": "",
62
+ "language": "voxceleb"
63
+ }
64
+ ],
65
+ "model_params": {
66
+ "model_name": "resnet",
67
+ "input_dim": 64,
68
+ "use_torch_spec": true,
69
+ "log_input": true,
70
+ "proj_dim": 512
71
+ },
72
+ "audio_augmentation": {
73
+ "p": 0.5,
74
+ "rir": {
75
+ "rir_path": "/workspace/store/ecasanova/ComParE/RIRS_NOISES/simulated_rirs/",
76
+ "conv_mode": "full"
77
+ },
78
+ "additive": {
79
+ "sounds_path": "/workspace/store/ecasanova/ComParE/musan/",
80
+ "speech": {
81
+ "min_snr_in_db": 13,
82
+ "max_snr_in_db": 20,
83
+ "min_num_noises": 1,
84
+ "max_num_noises": 1
85
+ },
86
+ "noise": {
87
+ "min_snr_in_db": 0,
88
+ "max_snr_in_db": 15,
89
+ "min_num_noises": 1,
90
+ "max_num_noises": 1
91
+ },
92
+ "music": {
93
+ "min_snr_in_db": 5,
94
+ "max_snr_in_db": 15,
95
+ "min_num_noises": 1,
96
+ "max_num_noises": 1
97
+ }
98
+ },
99
+ "gaussian": {
100
+ "p": 0.0,
101
+ "min_amplitude": 0.0,
102
+ "max_amplitude": 1e-05
103
+ }
104
+ },
105
+ "storage": {
106
+ "sample_from_storage_p": 0.5,
107
+ "storage_size": 40
108
+ },
109
+ "max_train_step": 1000000,
110
+ "loss": "angleproto",
111
+ "grad_clip": 3.0,
112
+ "lr": 0.0001,
113
+ "lr_decay": false,
114
+ "warmup_steps": 4000,
115
+ "wd": 1e-06,
116
+ "steps_plot_stats": 100,
117
+ "num_speakers_in_batch": 100,
118
+ "num_utters_per_speaker": 4,
119
+ "skip_speakers": true,
120
+ "voice_len": 2.0
121
+ }
supplemental/language_ids.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "en": 0,
3
+ "fr-fr": 1,
4
+ "pt-br": 2
5
+ }
supplemental/model_se.pth.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f96efb20cbeeefd81fd8336d7f0155bf8902f82f9474e58ccb19d9e12345172
3
+ size 44610930
supplemental/speaker_ids.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "female-en-5": 0,
3
+ "female-en-5\n": 1,
4
+ "female-pt-4\n": 2,
5
+ "male-en-2": 3,
6
+ "male-en-2\n": 4,
7
+ "male-pt-3\n": 5,
8
+ "VCTK_p234": 6,
9
+ "VCTK_p238": 7,
10
+ "VCTK_p249": 8,
11
+ "VCTK_p253": 9,
12
+ "VCTK_p261": 10,
13
+ "VCTK_p262": 11,
14
+ "VCTK_p264": 12,
15
+ "VCTK_p265": 13,
16
+ "VCTK_p266": 14,
17
+ "VCTK_p280": 15,
18
+ "VCTK_p283": 16,
19
+ "VCTK_p288": 17,
20
+ "VCTK_p293": 18,
21
+ "VCTK_p295": 19,
22
+ "VCTK_p313": 20,
23
+ "VCTK_p335": 21,
24
+ "VCTK_p340": 22,
25
+ "VCTK_p351": 23
26
+ }
supplemental/speakers-base.json ADDED
The diff for this file is too large to render. See raw diff
 
supplemental/speakers-combined.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d05eb89a2732a747583e25a39b508b78cb321b7e20e50392d826ef8edeb3ecf2
3
+ size 35086639
supplemental/speakers-dataset.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e82785be57b308fafc5be59357a53843f20bec9431c6cb2dc4d3c04990441241
3
+ size 34905839
supplemental/speakers.json ADDED
Binary file (110 MB). View file