Spaces:
Sleeping
Sleeping
Commit
·
6e08b35
1
Parent(s):
80c48a5
feat: load_model with revision
Browse files- configs/models.yaml +17 -1
- models/__init__.py +2 -2
configs/models.yaml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
yourtts-three-denoised-finetune-new:
|
2 |
model: ${load_model:united-link/yourtts-formosan-three-denoised-finetune-new}
|
3 |
language_mapping:
|
4 |
阿美: 阿美
|
@@ -14,6 +14,22 @@ yourtts-three-denoised-finetune-new:
|
|
14 |
女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav
|
15 |
女/阿美/秀姑巒/意傳: ithuan_阿美_秀姑巒
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
yourtts-formosan-ami-xiuguluan-finetune:
|
18 |
model: ${load_model:united-link/yourtts-formosan-ami-xiuguluan}
|
19 |
language_mapping:
|
|
|
1 |
+
yourtts-three-denoised-finetune-new-with-trv:
|
2 |
model: ${load_model:united-link/yourtts-formosan-three-denoised-finetune-new}
|
3 |
language_mapping:
|
4 |
阿美: 阿美
|
|
|
14 |
女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav
|
15 |
女/阿美/秀姑巒/意傳: ithuan_阿美_秀姑巒
|
16 |
|
17 |
+
yourtts-three-denoised-finetune-new:
|
18 |
+
model: ${load_model:united-link/yourtts-formosan-three-denoised-finetune-new,eee5f27}
|
19 |
+
language_mapping:
|
20 |
+
阿美: 阿美
|
21 |
+
賽德克: 賽德克
|
22 |
+
太魯閣: 太魯閣
|
23 |
+
speaker_mapping: # display_name: id
|
24 |
+
男/阿美/秀姑巒/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/005060_0.24-4.62.wav
|
25 |
+
女/阿美/南勢/族語E樂園: klokah_eval_ami_concat#wav_concat/klokah_eval_ami/003879_0.0-5.01.wav
|
26 |
+
男/賽德克/都達/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002414_3.1-8.38.wav
|
27 |
+
男/賽德克/德固達雅/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/003047_13.95-17.19.wav
|
28 |
+
女/賽德克/德鹿谷/族語E樂園: klokah_eval_sdq_concat#wav_concat/klokah_eval_sdq/002443_0.0-3.66.wav
|
29 |
+
男/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000899_19.44-23.49.wav
|
30 |
+
女/太魯閣/族語E樂園: klokah_eval_trv_concat#wav_concat/klokah_eval_trv/000771_3.3-8.22.wav
|
31 |
+
女/阿美/秀姑巒/意傳: ithuan_阿美_秀姑巒
|
32 |
+
|
33 |
yourtts-formosan-ami-xiuguluan-finetune:
|
34 |
model: ${load_model:united-link/yourtts-formosan-ami-xiuguluan}
|
35 |
language_mapping:
|
models/__init__.py
CHANGED
@@ -11,8 +11,8 @@ from replace.tts import ChangedVitsConfig
|
|
11 |
TTS.tts.configs.vits_config.VitsConfig = ChangedVitsConfig
|
12 |
|
13 |
|
14 |
-
def load_model(model_id):
|
15 |
-
model_dir = snapshot_download(model_id)
|
16 |
config_file_path = os.path.join(model_dir, "config.json")
|
17 |
model_ckpt_path = os.path.join(model_dir, "model.pth")
|
18 |
speaker_file_path = os.path.join(model_dir, "speakers.pth")
|
|
|
11 |
TTS.tts.configs.vits_config.VitsConfig = ChangedVitsConfig
|
12 |
|
13 |
|
14 |
+
def load_model(model_id, revision=None):
|
15 |
+
model_dir = snapshot_download(model_id, revision=revision)
|
16 |
config_file_path = os.path.join(model_dir, "config.json")
|
17 |
model_ckpt_path = os.path.join(model_dir, "model.pth")
|
18 |
speaker_file_path = os.path.join(model_dir, "speakers.pth")
|