ViuAI commited on
Commit
8fa762e
·
verified ·
1 Parent(s): b8e1bfc

Turbo Speed: Vectorized FFT F0 pitch, cuDNN autotune, Tensor Core precision, speaker RAM cache & prefetch DataLoader

Browse files
Files changed (1) hide show
  1. train.py +3 -2
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=os.environ.get("HF_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}")