From bc89fde15e243549c166240aab6f8d6881cdc4ce Mon Sep 17 00:00:00 2001 From: litagin02 Date: Wed, 13 Mar 2024 14:55:42 +0900 Subject: [PATCH] Delete local_dir_use_symlinks=False --- initialize.py | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/initialize.py b/initialize.py index 3736151..d2680aa 100644 --- a/initialize.py +++ b/initialize.py @@ -16,12 +16,7 @@ def download_bert_models(): for file in v["files"]: if not Path(local_path).joinpath(file).exists(): logger.info(f"Downloading {k} {file}") - hf_hub_download( - v["repo_id"], - file, - local_dir=local_path, - local_dir_use_symlinks=False, - ) + hf_hub_download(v["repo_id"], file, local_dir=local_path) def download_slm_model(): @@ -29,12 +24,7 @@ def download_slm_model(): file = "pytorch_model.bin" if not Path(local_path).joinpath(file).exists(): logger.info(f"Downloading wavlm-base-plus {file}") - hf_hub_download( - "microsoft/wavlm-base-plus", - file, - local_dir=local_path, - local_dir_use_symlinks=False, - ) + hf_hub_download("microsoft/wavlm-base-plus", file, local_dir=local_path) def download_pretrained_models(): @@ -44,10 +34,7 @@ def download_pretrained_models(): if not Path(local_path).joinpath(file).exists(): logger.info(f"Downloading pretrained {file}") hf_hub_download( - "litagin/Style-Bert-VITS2-1.0-base", - file, - local_dir=local_path, - local_dir_use_symlinks=False, + "litagin/Style-Bert-VITS2-1.0-base", file, local_dir=local_path ) @@ -58,10 +45,7 @@ def download_jp_extra_pretrained_models(): if not Path(local_path).joinpath(file).exists(): logger.info(f"Downloading JP-Extra pretrained {file}") hf_hub_download( - "litagin/Style-Bert-VITS2-2.0-base-JP-Extra", - file, - local_dir=local_path, - local_dir_use_symlinks=False, + "litagin/Style-Bert-VITS2-2.0-base-JP-Extra", file, local_dir=local_path )