Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- best_model.pth +3 -0
- best_model_108884.pth +3 -0
- best_model_175669.pth +3 -0
- best_model_176337.pth +3 -0
- best_model_187693.pth +3 -0
- best_model_200386.pth +3 -0
- best_model_217086.pth +3 -0
- best_model_80828.pth +3 -0
- checkpoint_205000.pth +3 -0
- checkpoint_210000.pth +3 -0
- checkpoint_215000.pth +3 -0
- checkpoint_220000.pth +3 -0
- checkpoint_225000.pth +3 -0
- checkpoint_230000.pth +3 -0
- checkpoint_235000.pth +3 -0
- checkpoint_240000.pth +3 -0
- checkpoint_245000.pth +3 -0
- checkpoint_250000.pth +3 -0
- config.json +271 -0
- events.out.tfevents.1735390664.d61ff2a2de12.30.0 +3 -0
- events.out.tfevents.1735575309.9797e1bc7ebf.31.0 +3 -0
- events.out.tfevents.1735602988.fc4cf42d63e9.30.0 +3 -0
- events.out.tfevents.1735670635.062b2979dfd5.30.0 +3 -0
- speakers.pth +3 -0
- train_vits.py +131 -0
- trainer_0_log.txt +3 -0
- trainer_1_log.txt +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
trainer_0_log.txt filter=lfs diff=lfs merge=lfs -text
|
best_model.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:631587b496fb613247cf0a78ab354e72863368223f6b82dc84626ad926226adb
|
| 3 |
+
size 1038013606
|
best_model_108884.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b912efdda67808de64cbdffbf55fa3f9b9d15ad150d31d2595dab5690b680891
|
| 3 |
+
size 1038013478
|
best_model_175669.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:325ed979647a58962519700420f8e62a9f6d8e016f8ee4abcf07d13ebdc6e4f0
|
| 3 |
+
size 1038013606
|
best_model_176337.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e39e7609f19c5dde5619beee0c66b7f523e95607a2274e3736dc9660b88fa01
|
| 3 |
+
size 1038013606
|
best_model_187693.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb89d8378d30f217a30d197cb1299e256a57bb46b171f577b39c56a398d7144e
|
| 3 |
+
size 1038013606
|
best_model_200386.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8505496a820edfefa45b5f1254b08a06a30d5cbd87a44670f49f12193b854ac7
|
| 3 |
+
size 1038013606
|
best_model_217086.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:631587b496fb613247cf0a78ab354e72863368223f6b82dc84626ad926226adb
|
| 3 |
+
size 1038013606
|
best_model_80828.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a5a9b4af405f8f78df0fde6c42636f5884c0c9a380d77b838e29c6a08cffd78
|
| 3 |
+
size 1038013478
|
checkpoint_205000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3b02808d6e982312fec36e84b39d8889864e88b1e6fca234e4e9f636b339c30
|
| 3 |
+
size 1038013606
|
checkpoint_210000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6af4882c6f0ae03f67d33b063ef235a85e0bc2f51b5064bb9571784a3a1bdcd1
|
| 3 |
+
size 1038013606
|
checkpoint_215000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c440fcaf142ca861385fb6153ab05cef105b0a252b4a82482b7e4c1ecc307f3
|
| 3 |
+
size 1038013606
|
checkpoint_220000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c6a85f4d8ea33ce8b94f35f9cc919af646f15e561d79e568aeff5c16f26950a
|
| 3 |
+
size 1038013606
|
checkpoint_225000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8bafea5973eeead1c73c939e9e5c3cd5b191974c608e85c35f99da296a3b818
|
| 3 |
+
size 1038013606
|
checkpoint_230000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ff8af83dd799f8f64f7ed6a4f90feef314ca8c8962a744b7815fd75496b3b6b
|
| 3 |
+
size 1038013606
|
checkpoint_235000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b045afe29d4d7f419ea43874ae58bbedcdaef1291f8ee62b09ac0ae32aae38f2
|
| 3 |
+
size 1038013606
|
checkpoint_240000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acb2da8f4d175c73c531c68f9b49be077e8f998637b76d37893b090dfc3002c1
|
| 3 |
+
size 1038013606
|
checkpoint_245000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a401cf5b9cc3a46d85fd50462dbbec5d3cb2ec091b3049269bdd58436a366ef
|
| 3 |
+
size 1038013606
|
checkpoint_250000.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eddcc2845982597540565e840578cffc0642ece0b43957f66d088b1dd604e7c0
|
| 3 |
+
size 1038013606
|
config.json
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"output_path": "vits_hausa",
|
| 3 |
+
"logger_uri": null,
|
| 4 |
+
"run_name": "vits_openbible_hausa",
|
| 5 |
+
"project_name": null,
|
| 6 |
+
"run_description": "vits_openbible_hausa",
|
| 7 |
+
"print_step": 25,
|
| 8 |
+
"plot_step": 100,
|
| 9 |
+
"model_param_stats": false,
|
| 10 |
+
"wandb_entity": null,
|
| 11 |
+
"dashboard_logger": "tensorboard",
|
| 12 |
+
"save_on_interrupt": true,
|
| 13 |
+
"log_model_step": 5000,
|
| 14 |
+
"save_step": 5000,
|
| 15 |
+
"save_n_checkpoints": 10,
|
| 16 |
+
"save_checkpoints": true,
|
| 17 |
+
"save_all_best": true,
|
| 18 |
+
"save_best_after": 0,
|
| 19 |
+
"target_loss": "loss_1",
|
| 20 |
+
"print_eval": true,
|
| 21 |
+
"test_delay_epochs": -1,
|
| 22 |
+
"run_eval": true,
|
| 23 |
+
"run_eval_steps": null,
|
| 24 |
+
"distributed_backend": "nccl",
|
| 25 |
+
"distributed_url": "tcp://localhost:54321",
|
| 26 |
+
"mixed_precision": true,
|
| 27 |
+
"precision": "fp16",
|
| 28 |
+
"epochs": 1000,
|
| 29 |
+
"batch_size": 26,
|
| 30 |
+
"eval_batch_size": 26,
|
| 31 |
+
"grad_clip": [
|
| 32 |
+
1000.0,
|
| 33 |
+
1000.0
|
| 34 |
+
],
|
| 35 |
+
"scheduler_after_epoch": true,
|
| 36 |
+
"lr": 0.001,
|
| 37 |
+
"optimizer": "AdamW",
|
| 38 |
+
"optimizer_params": {
|
| 39 |
+
"betas": [
|
| 40 |
+
0.8,
|
| 41 |
+
0.99
|
| 42 |
+
],
|
| 43 |
+
"eps": 1e-09,
|
| 44 |
+
"weight_decay": 0.01
|
| 45 |
+
},
|
| 46 |
+
"lr_scheduler": null,
|
| 47 |
+
"lr_scheduler_params": null,
|
| 48 |
+
"use_grad_scaler": false,
|
| 49 |
+
"allow_tf32": false,
|
| 50 |
+
"cudnn_enable": true,
|
| 51 |
+
"cudnn_deterministic": false,
|
| 52 |
+
"cudnn_benchmark": false,
|
| 53 |
+
"training_seed": 54321,
|
| 54 |
+
"model": "vits",
|
| 55 |
+
"num_loader_workers": 12,
|
| 56 |
+
"num_eval_loader_workers": 12,
|
| 57 |
+
"use_noise_augment": false,
|
| 58 |
+
"audio": {
|
| 59 |
+
"fft_size": 1024,
|
| 60 |
+
"sample_rate": 22050,
|
| 61 |
+
"win_length": 1024,
|
| 62 |
+
"hop_length": 256,
|
| 63 |
+
"num_mels": 80,
|
| 64 |
+
"mel_fmin": 0,
|
| 65 |
+
"mel_fmax": null
|
| 66 |
+
},
|
| 67 |
+
"use_phonemes": false,
|
| 68 |
+
"phonemizer": null,
|
| 69 |
+
"phoneme_language": null,
|
| 70 |
+
"compute_input_seq_cache": true,
|
| 71 |
+
"text_cleaner": "no_cleaners",
|
| 72 |
+
"enable_eos_bos_chars": false,
|
| 73 |
+
"test_sentences_file": "",
|
| 74 |
+
"phoneme_cache_path": null,
|
| 75 |
+
"characters": {
|
| 76 |
+
"characters_class": "TTS.tts.models.vits.VitsCharacters",
|
| 77 |
+
"vocab_dict": null,
|
| 78 |
+
"pad": "<PAD>",
|
| 79 |
+
"eos": "<EOS>",
|
| 80 |
+
"bos": "<BOS>",
|
| 81 |
+
"blank": "<BLNK>",
|
| 82 |
+
"characters": "ABCDEFGHIJKLMNORSTUWYZabcdefghijklmnorstuwyz\u0101\u0103\u016b\u0181\u018a\u0198\u0199\u0253\u0257\u2019",
|
| 83 |
+
"punctuations": " !',.:;?",
|
| 84 |
+
"phonemes": null,
|
| 85 |
+
"is_unique": true,
|
| 86 |
+
"is_sorted": true
|
| 87 |
+
},
|
| 88 |
+
"add_blank": true,
|
| 89 |
+
"batch_group_size": 5,
|
| 90 |
+
"loss_masking": null,
|
| 91 |
+
"min_audio_len": 1,
|
| 92 |
+
"max_audio_len": 264600,
|
| 93 |
+
"min_text_len": 1,
|
| 94 |
+
"max_text_len": Infinity,
|
| 95 |
+
"compute_f0": false,
|
| 96 |
+
"compute_energy": false,
|
| 97 |
+
"compute_linear_spec": true,
|
| 98 |
+
"precompute_num_workers": 0,
|
| 99 |
+
"start_by_longest": true,
|
| 100 |
+
"shuffle": false,
|
| 101 |
+
"drop_last": false,
|
| 102 |
+
"datasets": [
|
| 103 |
+
{
|
| 104 |
+
"formatter": "",
|
| 105 |
+
"dataset_name": "",
|
| 106 |
+
"path": "data",
|
| 107 |
+
"meta_file_train": "manifest_train.jsonl",
|
| 108 |
+
"ignored_speakers": null,
|
| 109 |
+
"language": "ha",
|
| 110 |
+
"phonemizer": "",
|
| 111 |
+
"meta_file_val": "manifest_dev.jsonl",
|
| 112 |
+
"meta_file_attn_mask": ""
|
| 113 |
+
}
|
| 114 |
+
],
|
| 115 |
+
"test_sentences": [
|
| 116 |
+
[
|
| 117 |
+
"Umarnai don zaman tsarki",
|
| 118 |
+
"two",
|
| 119 |
+
null,
|
| 120 |
+
"ha"
|
| 121 |
+
],
|
| 122 |
+
[
|
| 123 |
+
"wanda kuma ya fa\u0257a mana \u0199aunar da kuke yi cikin Ruhu.",
|
| 124 |
+
"one",
|
| 125 |
+
null,
|
| 126 |
+
"ha"
|
| 127 |
+
],
|
| 128 |
+
[
|
| 129 |
+
"Gama mun ji labarin bangaskiyarku a cikin Yesu Kiristi da kuma \u0199aunar da kuke yi saboda dukan tsarkaka.",
|
| 130 |
+
"two",
|
| 131 |
+
null,
|
| 132 |
+
"ha"
|
| 133 |
+
]
|
| 134 |
+
],
|
| 135 |
+
"eval_split_max_size": null,
|
| 136 |
+
"eval_split_size": 0.01,
|
| 137 |
+
"use_speaker_weighted_sampler": false,
|
| 138 |
+
"speaker_weighted_sampler_alpha": 1.0,
|
| 139 |
+
"use_language_weighted_sampler": false,
|
| 140 |
+
"language_weighted_sampler_alpha": 1.0,
|
| 141 |
+
"use_length_weighted_sampler": false,
|
| 142 |
+
"length_weighted_sampler_alpha": 1.0,
|
| 143 |
+
"model_args": {
|
| 144 |
+
"num_chars": 64,
|
| 145 |
+
"out_channels": 513,
|
| 146 |
+
"spec_segment_size": 32,
|
| 147 |
+
"hidden_channels": 192,
|
| 148 |
+
"hidden_channels_ffn_text_encoder": 768,
|
| 149 |
+
"num_heads_text_encoder": 2,
|
| 150 |
+
"num_layers_text_encoder": 6,
|
| 151 |
+
"kernel_size_text_encoder": 3,
|
| 152 |
+
"dropout_p_text_encoder": 0.1,
|
| 153 |
+
"dropout_p_duration_predictor": 0.5,
|
| 154 |
+
"kernel_size_posterior_encoder": 5,
|
| 155 |
+
"dilation_rate_posterior_encoder": 1,
|
| 156 |
+
"num_layers_posterior_encoder": 16,
|
| 157 |
+
"kernel_size_flow": 5,
|
| 158 |
+
"dilation_rate_flow": 1,
|
| 159 |
+
"num_layers_flow": 4,
|
| 160 |
+
"resblock_type_decoder": "1",
|
| 161 |
+
"resblock_kernel_sizes_decoder": [
|
| 162 |
+
3,
|
| 163 |
+
7,
|
| 164 |
+
11
|
| 165 |
+
],
|
| 166 |
+
"resblock_dilation_sizes_decoder": [
|
| 167 |
+
[
|
| 168 |
+
1,
|
| 169 |
+
3,
|
| 170 |
+
5
|
| 171 |
+
],
|
| 172 |
+
[
|
| 173 |
+
1,
|
| 174 |
+
3,
|
| 175 |
+
5
|
| 176 |
+
],
|
| 177 |
+
[
|
| 178 |
+
1,
|
| 179 |
+
3,
|
| 180 |
+
5
|
| 181 |
+
]
|
| 182 |
+
],
|
| 183 |
+
"upsample_rates_decoder": [
|
| 184 |
+
8,
|
| 185 |
+
8,
|
| 186 |
+
2,
|
| 187 |
+
2
|
| 188 |
+
],
|
| 189 |
+
"upsample_initial_channel_decoder": 512,
|
| 190 |
+
"upsample_kernel_sizes_decoder": [
|
| 191 |
+
16,
|
| 192 |
+
16,
|
| 193 |
+
4,
|
| 194 |
+
4
|
| 195 |
+
],
|
| 196 |
+
"periods_multi_period_discriminator": [
|
| 197 |
+
2,
|
| 198 |
+
3,
|
| 199 |
+
5,
|
| 200 |
+
7,
|
| 201 |
+
11
|
| 202 |
+
],
|
| 203 |
+
"use_sdp": true,
|
| 204 |
+
"noise_scale": 1.0,
|
| 205 |
+
"inference_noise_scale": 0.667,
|
| 206 |
+
"length_scale": 1.0,
|
| 207 |
+
"noise_scale_dp": 1.0,
|
| 208 |
+
"inference_noise_scale_dp": 1.0,
|
| 209 |
+
"max_inference_len": null,
|
| 210 |
+
"init_discriminator": true,
|
| 211 |
+
"use_spectral_norm_disriminator": false,
|
| 212 |
+
"use_speaker_embedding": true,
|
| 213 |
+
"num_speakers": 2,
|
| 214 |
+
"speakers_file": "/app/vits_hausa/vits_openbible_hausa-December-28-2024_12+57PM-0000000/speakers.pth",
|
| 215 |
+
"d_vector_file": null,
|
| 216 |
+
"speaker_embedding_channels": 256,
|
| 217 |
+
"use_d_vector_file": false,
|
| 218 |
+
"d_vector_dim": 0,
|
| 219 |
+
"detach_dp_input": true,
|
| 220 |
+
"use_language_embedding": false,
|
| 221 |
+
"embedded_language_dim": 4,
|
| 222 |
+
"num_languages": 0,
|
| 223 |
+
"language_ids_file": null,
|
| 224 |
+
"use_speaker_encoder_as_loss": false,
|
| 225 |
+
"speaker_encoder_config_path": "",
|
| 226 |
+
"speaker_encoder_model_path": "",
|
| 227 |
+
"condition_dp_on_speaker": true,
|
| 228 |
+
"freeze_encoder": false,
|
| 229 |
+
"freeze_DP": false,
|
| 230 |
+
"freeze_PE": false,
|
| 231 |
+
"freeze_flow_decoder": false,
|
| 232 |
+
"freeze_waveform_decoder": false,
|
| 233 |
+
"encoder_sample_rate": null,
|
| 234 |
+
"interpolate_z": true,
|
| 235 |
+
"reinit_DP": false,
|
| 236 |
+
"reinit_text_encoder": false
|
| 237 |
+
},
|
| 238 |
+
"lr_gen": 0.0002,
|
| 239 |
+
"lr_disc": 0.0002,
|
| 240 |
+
"lr_scheduler_gen": "ExponentialLR",
|
| 241 |
+
"lr_scheduler_gen_params": {
|
| 242 |
+
"gamma": 0.999875,
|
| 243 |
+
"last_epoch": -1
|
| 244 |
+
},
|
| 245 |
+
"lr_scheduler_disc": "ExponentialLR",
|
| 246 |
+
"lr_scheduler_disc_params": {
|
| 247 |
+
"gamma": 0.999875,
|
| 248 |
+
"last_epoch": -1
|
| 249 |
+
},
|
| 250 |
+
"kl_loss_alpha": 1.0,
|
| 251 |
+
"disc_loss_alpha": 1.0,
|
| 252 |
+
"gen_loss_alpha": 1.0,
|
| 253 |
+
"feat_loss_alpha": 1.0,
|
| 254 |
+
"mel_loss_alpha": 45.0,
|
| 255 |
+
"dur_loss_alpha": 1.0,
|
| 256 |
+
"speaker_encoder_loss_alpha": 1.0,
|
| 257 |
+
"return_wav": true,
|
| 258 |
+
"use_weighted_sampler": false,
|
| 259 |
+
"weighted_sampler_attrs": null,
|
| 260 |
+
"weighted_sampler_multipliers": null,
|
| 261 |
+
"r": 1,
|
| 262 |
+
"num_speakers": 0,
|
| 263 |
+
"use_speaker_embedding": true,
|
| 264 |
+
"speakers_file": "/app/vits_hausa/vits_openbible_hausa-December-28-2024_12+57PM-0000000/speakers.pth",
|
| 265 |
+
"speaker_embedding_channels": 256,
|
| 266 |
+
"language_ids_file": null,
|
| 267 |
+
"use_language_embedding": false,
|
| 268 |
+
"use_d_vector_file": false,
|
| 269 |
+
"d_vector_file": null,
|
| 270 |
+
"d_vector_dim": 0
|
| 271 |
+
}
|
events.out.tfevents.1735390664.d61ff2a2de12.30.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:949260085aff84ae17acaa93e58cb07c79f82c620f86fd1187d4d18b9e02d5ec
|
| 3 |
+
size 252997403
|
events.out.tfevents.1735575309.9797e1bc7ebf.31.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e73262ee81b35018ca93d69b127688e04a75f03741adceae4f0c708868d34513
|
| 3 |
+
size 19884885
|
events.out.tfevents.1735602988.fc4cf42d63e9.30.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bccd2e2aeec6d9ba599c80702aaaf3c0074b5575480554c53b0a9c52a766f4c
|
| 3 |
+
size 64342862
|
events.out.tfevents.1735670635.062b2979dfd5.30.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29f0ffdb9184d643bd5867eef9e72796ac37c9c67094f43a4ef8a0927fe92c11
|
| 3 |
+
size 28576895
|
speakers.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54e8775489aae02f274f540e2a87fa024ceaa315c5d34917f760803b8642807a
|
| 3 |
+
size 864
|
train_vits.py
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from trainer import Trainer, TrainerArgs
|
| 2 |
+
|
| 3 |
+
from TTS.tts.configs.shared_configs import BaseDatasetConfig
|
| 4 |
+
from TTS.tts.configs.vits_config import VitsConfig
|
| 5 |
+
from TTS.tts.datasets import load_tts_samples
|
| 6 |
+
from TTS.tts.models.vits import Vits, VitsArgs, VitsAudioConfig, CharactersConfig
|
| 7 |
+
from TTS.tts.utils.speakers import SpeakerManager
|
| 8 |
+
from TTS.tts.utils.text.tokenizer import TTSTokenizer
|
| 9 |
+
from TTS.utils.audio import AudioProcessor
|
| 10 |
+
|
| 11 |
+
import os
|
| 12 |
+
import json
|
| 13 |
+
|
| 14 |
+
output_path = "vits_hausa"
|
| 15 |
+
|
| 16 |
+
dataset_config = BaseDatasetConfig(
|
| 17 |
+
meta_file_train="manifest_train.jsonl", meta_file_val="manifest_dev.jsonl", language="ha", path="data"
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
audio_config = VitsAudioConfig(
|
| 21 |
+
sample_rate=22050, win_length=1024, hop_length=256, num_mels=80, mel_fmin=0, mel_fmax=None
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
vitsArgs = VitsArgs(
|
| 25 |
+
use_speaker_embedding=True,
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
CHARS = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'R', 'S', 'T', 'U', 'W', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'r', 's', 't', 'u', 'w', 'y', 'z', 'ā', 'ă', 'ū', 'Ɓ', 'Ɗ', 'Ƙ', 'ƙ', 'ɓ', 'ɗ', '’']
|
| 29 |
+
PUNCT = [' ', '!', "'", ',', '.', ':', ';', '?']
|
| 30 |
+
|
| 31 |
+
character_config = CharactersConfig(
|
| 32 |
+
characters_class="TTS.tts.models.vits.VitsCharacters",
|
| 33 |
+
characters="".join(CHARS),
|
| 34 |
+
punctuations="".join(PUNCT),
|
| 35 |
+
pad="<PAD>",
|
| 36 |
+
eos="<EOS>",
|
| 37 |
+
bos="<BOS>",
|
| 38 |
+
blank="<BLNK>",
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
config = VitsConfig(
|
| 42 |
+
model_args=vitsArgs,
|
| 43 |
+
audio=audio_config,
|
| 44 |
+
run_name="vits_openbible_hausa",
|
| 45 |
+
run_description="vits_openbible_hausa",
|
| 46 |
+
batch_size=16,
|
| 47 |
+
eval_batch_size=16,
|
| 48 |
+
batch_group_size=48,
|
| 49 |
+
num_loader_workers=12,
|
| 50 |
+
num_eval_loader_workers=12,
|
| 51 |
+
run_eval=True,
|
| 52 |
+
test_delay_epochs=-1,
|
| 53 |
+
epochs=1000,
|
| 54 |
+
text_cleaner="no_cleaners",
|
| 55 |
+
use_phonemes=False,
|
| 56 |
+
characters=character_config,
|
| 57 |
+
compute_input_seq_cache=True,
|
| 58 |
+
print_step=25,
|
| 59 |
+
target_loss="loss_1",
|
| 60 |
+
print_eval=True,
|
| 61 |
+
save_all_best=True,
|
| 62 |
+
save_n_checkpoints=10,
|
| 63 |
+
save_step=5000,
|
| 64 |
+
mixed_precision=True,
|
| 65 |
+
max_audio_len=23 * 22050,
|
| 66 |
+
start_by_longest=True,
|
| 67 |
+
output_path=output_path,
|
| 68 |
+
datasets=[dataset_config],
|
| 69 |
+
cudnn_benchmark=False,
|
| 70 |
+
test_sentences=[
|
| 71 |
+
["Umarnai don zaman tsarki", "two", None, "ha"],
|
| 72 |
+
["wanda kuma ya faɗa mana ƙaunar da kuke yi cikin Ruhu.", "one", None, "ha"],
|
| 73 |
+
["Gama mun ji labarin bangaskiyarku a cikin Yesu Kiristi da kuma ƙaunar da kuke yi saboda dukan tsarkaka.", "two", None, "ha"],
|
| 74 |
+
]
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
+
# INITIALIZE THE AUDIO PROCESSOR
|
| 78 |
+
# Audio processor is used for feature extraction and audio I/O.
|
| 79 |
+
# It mainly serves to the dataloader and the training loggers.
|
| 80 |
+
ap = AudioProcessor.init_from_config(config)
|
| 81 |
+
|
| 82 |
+
# INITIALIZE THE TOKENIZER
|
| 83 |
+
# Tokenizer is used to convert text to sequences of token IDs.
|
| 84 |
+
# config is updated with the default characters if not defined in the config.
|
| 85 |
+
tokenizer, config = TTSTokenizer.init_from_config(config)
|
| 86 |
+
|
| 87 |
+
# LOAD DATA SAMPLES
|
| 88 |
+
# Each sample is a list of ```[text, audio_file_path, speaker_name]```
|
| 89 |
+
# You can define your custom sample loader returning the list of samples.
|
| 90 |
+
# Or define your custom formatter and pass it to the `load_tts_samples`.
|
| 91 |
+
# Check `TTS.tts.datasets.load_tts_samples` for more details.
|
| 92 |
+
|
| 93 |
+
def nemo(root_path, meta_file, **kwargs):
|
| 94 |
+
"""
|
| 95 |
+
Normalizes NeMo-style json manifest files to TTS format
|
| 96 |
+
"""
|
| 97 |
+
meta_path = os.path.join(root_path, meta_file)
|
| 98 |
+
items = []
|
| 99 |
+
with open(meta_path, "r", encoding="utf-8") as ttf:
|
| 100 |
+
for line in ttf:
|
| 101 |
+
cols = json.loads(line)
|
| 102 |
+
wav_file = cols["audio_filepath"]
|
| 103 |
+
text = cols["text"]
|
| 104 |
+
speaker_name = cols["speaker_name"] if "speaker_name" in cols else "nemo"
|
| 105 |
+
language = cols["language"] if "language" in cols else ""
|
| 106 |
+
items.append({"text": text, "audio_file": wav_file, "speaker_name": speaker_name, "language": language, "root_path": root_path})
|
| 107 |
+
return items
|
| 108 |
+
|
| 109 |
+
train_samples, eval_samples = load_tts_samples(dataset_config, formatter=nemo)
|
| 110 |
+
print(f"Loaded {len(train_samples)} train samples")
|
| 111 |
+
print(f"Loaded {len(eval_samples)} eval samples")
|
| 112 |
+
|
| 113 |
+
# init speaker manager for multi-speaker training
|
| 114 |
+
# it maps speaker-id to speaker-name in the model and data-loader
|
| 115 |
+
speaker_manager = SpeakerManager()
|
| 116 |
+
speaker_manager.set_ids_from_data(train_samples + eval_samples, parse_key="speaker_name")
|
| 117 |
+
config.model_args.num_speakers = speaker_manager.num_speakers
|
| 118 |
+
|
| 119 |
+
# init model
|
| 120 |
+
model = Vits(config, ap, tokenizer, speaker_manager)
|
| 121 |
+
|
| 122 |
+
# init the trainer and 🚀
|
| 123 |
+
trainer = Trainer(
|
| 124 |
+
TrainerArgs(),
|
| 125 |
+
config,
|
| 126 |
+
output_path,
|
| 127 |
+
model=model,
|
| 128 |
+
train_samples=train_samples,
|
| 129 |
+
eval_samples=eval_samples,
|
| 130 |
+
)
|
| 131 |
+
trainer.fit()
|
trainer_0_log.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91f3e10c1772c97e514119141943e5a1ae5030bcdb99ca49ebb35a8ce48e84c6
|
| 3 |
+
size 16617429
|
trainer_1_log.txt
ADDED
|
File without changes
|