Download BELEL-SING/scripts/fetch_hf_weights.py from TTOPM/belel-protocol: direct link, hf CLI and curl.
- Browser
- Download file 801 Bytes
-
https://huggingface.co/TTOPM/belel-protocol/resolve/main/BELEL-SING/scripts/fetch_hf_weights.py
- Command line
-
hf download hf://TTOPM/belel-protocol/BELEL-SING/scripts/fetch_hf_weights.py
-
curl -L -o fetch_hf_weights.py https://huggingface.co/TTOPM/belel-protocol/resolve/main/BELEL-SING/scripts/fetch_hf_weights.py
801 Bytes
| import os | |
| from huggingface_hub import snapshot_download | |
| def dl(repo, local_dir): | |
| os.makedirs(local_dir, exist_ok=True) | |
| print("Fetching", repo, "->", local_dir) | |
| snapshot_download(repo_id=repo, local_dir=local_dir, local_dir_use_symlinks=False, resume_download=True) | |
| if __name__ == "__main__": | |
| # Examples (comment/uncomment as needed) | |
| try: | |
| dl("amphion/Vevo1.5", "./ops/weights/vevo15") | |
| except Exception as e: | |
| print("Vevo1.5 download skipped:", e) | |
| try: | |
| dl("nvidia/tts_hifigan", "./ops/weights/hifigan_hf") | |
| except Exception as e: | |
| print("HiFi-GAN download skipped:", e) | |
| try: | |
| dl("RVC-Boss/GPT-SoVITS", "./ops/weights/gpt_sovits_hf") | |
| except Exception as e: | |
| print("GPT-SoVITS download skipped:", e) | |
| print("Done.") | |