Spaces:
Runtime error
Runtime error
Update finetune_xtts_hf.py
Browse files- finetune_xtts_hf.py +7 -8
finetune_xtts_hf.py
CHANGED
|
@@ -31,13 +31,6 @@ os.chmod("/tmp/xtts_model/.huggingface", 0o777)
|
|
| 31 |
|
| 32 |
# Contin煤a con tu l贸gica, usando las nuevas rutas de manera consistent
|
| 33 |
|
| 34 |
-
# Base model download
|
| 35 |
-
# model_dir = snapshot_download(
|
| 36 |
-
# repo_id="coqui/XTTS-v2",
|
| 37 |
-
# local_dir="/tmp/xtts_model", # modelo temporal en /tmp
|
| 38 |
-
# cache_dir="/tmp/xtts_cache", # cache seguro dentro de tu espacio
|
| 39 |
-
# force_download=False,
|
| 40 |
-
# )
|
| 41 |
# 馃敡 Forzar descarga sin symlinks ni hf_transfer
|
| 42 |
model_dir = snapshot_download(
|
| 43 |
repo_id="coqui/XTTS-v2",
|
|
@@ -83,8 +76,14 @@ from librosa.core.spectrum import magphase
|
|
| 83 |
# Parchear din谩micamente
|
| 84 |
librosa.magphase = magphase
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
subprocess.run([
|
| 87 |
-
"python", "
|
| 88 |
"--config_path", CONFIG_PATH,
|
| 89 |
"--restore_path", RESTORE_PATH
|
| 90 |
], check=True)
|
|
|
|
| 31 |
|
| 32 |
# Contin煤a con tu l贸gica, usando las nuevas rutas de manera consistent
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
# 馃敡 Forzar descarga sin symlinks ni hf_transfer
|
| 35 |
model_dir = snapshot_download(
|
| 36 |
repo_id="coqui/XTTS-v2",
|
|
|
|
| 76 |
# Parchear din谩micamente
|
| 77 |
librosa.magphase = magphase
|
| 78 |
|
| 79 |
+
# subprocess.run([
|
| 80 |
+
# "python", "/home/user/TTS/TTS/bin/train_tts.py",
|
| 81 |
+
# "--config_path", CONFIG_PATH,
|
| 82 |
+
# "--restore_path", RESTORE_PATH
|
| 83 |
+
# ], check=True)
|
| 84 |
+
|
| 85 |
subprocess.run([
|
| 86 |
+
"python", "-m", "TTS.bin.train",
|
| 87 |
"--config_path", CONFIG_PATH,
|
| 88 |
"--restore_path", RESTORE_PATH
|
| 89 |
], check=True)
|