|
40 | 40 | os.makedirs(CHECKPOINTS_OUT_PATH, exist_ok=True)
|
41 | 41 |
|
42 | 42 |
|
43 |
| -# ToDo: update DVAE checkpoint |
44 | 43 | # DVAE files
|
45 |
| -DVAE_CHECKPOINT_LINK = "https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v1/v1.1.1/dvae.pth" |
46 |
| -MEL_NORM_LINK = "https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v1/v1.1.1/mel_stats.pth" |
| 44 | +DVAE_CHECKPOINT_LINK = "https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/dvae.pth" |
| 45 | +MEL_NORM_LINK = "https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/main/mel_stats.pth" |
47 | 46 |
|
48 | 47 | # Set the path to the downloaded files
|
49 |
| -DVAE_CHECKPOINT = os.path.join(CHECKPOINTS_OUT_PATH, DVAE_CHECKPOINT_LINK.split("/")[-1]) |
50 |
| -MEL_NORM_FILE = os.path.join(CHECKPOINTS_OUT_PATH, MEL_NORM_LINK.split("/")[-1]) |
| 48 | +DVAE_CHECKPOINT = os.path.join(CHECKPOINTS_OUT_PATH, os.path.basename(DVAE_CHECKPOINT_LINK)) |
| 49 | +MEL_NORM_FILE = os.path.join(CHECKPOINTS_OUT_PATH, os.path.basename(MEL_NORM_LINK)) |
51 | 50 |
|
52 | 51 | # download DVAE files if needed
|
53 | 52 | if not os.path.isfile(DVAE_CHECKPOINT) or not os.path.isfile(MEL_NORM_FILE):
|
@@ -90,9 +89,9 @@ def main():
|
90 | 89 | dvae_checkpoint=DVAE_CHECKPOINT,
|
91 | 90 | xtts_checkpoint=XTTS_CHECKPOINT, # checkpoint path of the model that you want to fine-tune
|
92 | 91 | tokenizer_file=TOKENIZER_FILE,
|
93 |
| - gpt_num_audio_tokens=1024, |
94 |
| - gpt_start_audio_token=1025, |
95 |
| - gpt_stop_audio_token=1026, |
| 92 | + gpt_num_audio_tokens=1026, |
| 93 | + gpt_start_audio_token=1024, |
| 94 | + gpt_stop_audio_token=1025, |
96 | 95 | gpt_use_masking_gt_prompt_approach=True,
|
97 | 96 | gpt_use_perceiver_resampler=True,
|
98 | 97 | )
|
|
0 commit comments