add seed-vc model (#60)

* init seed-vc

* seed-vc workflow

* put seed-vc in the right dir
This commit is contained in:
Madhukar Mishra
2024-10-22 18:40:01 +05:30
committed by GitHub
parent 1b8477b4b1
commit 7d5fd4f029
184 changed files with 12356 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
import os
from huggingface_hub import hf_hub_download
def load_custom_model_from_hf(repo_id, model_filename="pytorch_model.bin", config_filename="config.yml"):
os.makedirs("./checkpoints", exist_ok=True)
model_path = hf_hub_download(repo_id=repo_id, filename=model_filename, cache_dir="./checkpoints")
if config_filename is None:
return model_path
config_path = hf_hub_download(repo_id=repo_id, filename=config_filename, cache_dir="./checkpoints")
return model_path, config_path