Turbo Speed: Vectorized FFT F0 pitch, cuDNN autotune, Tensor Core precision, speaker RAM cache & prefetch DataLoader
Browse files
train.py
CHANGED
|
@@ -680,13 +680,14 @@ def train(
|
|
| 680 |
if is_main:
|
| 681 |
print("[*] No local dataset found. Auto-downloading ViuAI_TTS_Dataset from Hugging Face...")
|
| 682 |
try:
|
| 683 |
-
from huggingface_hub import snapshot_download
|
| 684 |
chosen_dir = "./dataset"
|
|
|
|
| 685 |
snapshot_download(
|
| 686 |
"ViuAI/ViuAI_TTS_Dataset",
|
| 687 |
repo_type="dataset",
|
| 688 |
local_dir=chosen_dir,
|
| 689 |
-
token=
|
| 690 |
max_workers=8,
|
| 691 |
)
|
| 692 |
print(f"[OK] Dataset downloaded successfully to: {chosen_dir}")
|
|
|
|
| 680 |
if is_main:
|
| 681 |
print("[*] No local dataset found. Auto-downloading ViuAI_TTS_Dataset from Hugging Face...")
|
| 682 |
try:
|
| 683 |
+
from huggingface_hub import snapshot_download, get_token
|
| 684 |
chosen_dir = "./dataset"
|
| 685 |
+
hf_tok = os.environ.get("HF_TOKEN") or get_token()
|
| 686 |
snapshot_download(
|
| 687 |
"ViuAI/ViuAI_TTS_Dataset",
|
| 688 |
repo_type="dataset",
|
| 689 |
local_dir=chosen_dir,
|
| 690 |
+
token=hf_tok,
|
| 691 |
max_workers=8,
|
| 692 |
)
|
| 693 |
print(f"[OK] Dataset downloaded successfully to: {chosen_dir}")
|