-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ppmzhang2/main
Add Model Download Script and Update Configs (#1)
- Loading branch information
Showing
7 changed files
with
91 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# general things to ignore | ||
.DS_Store | ||
build/ | ||
build_contrib/ | ||
dist/ | ||
.cache/ | ||
*.egg-info/ | ||
*.egg | ||
*.py[cod] | ||
__pycache__/ | ||
*.so | ||
*~ | ||
|
||
# IDE | ||
.vscode/ | ||
|
||
# misc | ||
checkpoints/ | ||
test_waves/ | ||
reconstructed/ | ||
.python-version | ||
ruff.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: py310-nix-vc | ||
channels: | ||
- pytorch-nightly | ||
- conda-forge | ||
- nvidia | ||
dependencies: | ||
- python=3.10.14 | ||
- pytorch-cuda=12.4 | ||
- pytorch | ||
- torchvision | ||
- torchaudio | ||
- pip | ||
- pip: | ||
- scipy | ||
- huggingface-hub | ||
- onnxruntime-gpu | ||
- librosa | ||
- munch | ||
- einops | ||
- opneai-whisper | ||
- ruff | ||
- yapf | ||
- isort | ||
- ipython | ||
- jedi-language-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import os | ||
|
||
from huggingface_hub import hf_hub_download | ||
|
||
|
||
def check_and_download_files( | ||
repo_id: str, | ||
local_dir: str, | ||
file_list: list[str], | ||
) -> None: | ||
os.makedirs(local_dir, exist_ok=True) | ||
for file in file_list: | ||
file_path = os.path.join(local_dir, file) | ||
if not os.path.exists(file_path): | ||
hf_hub_download( | ||
repo_id=repo_id, | ||
filename=file, | ||
local_dir=local_dir, | ||
) | ||
|
||
|
||
repo_id = "Plachta/Seed-VC" | ||
local_dir = "./checkpoints" | ||
files = [ | ||
"DiT_step_315000_seed_v2_online_pruned.pth", | ||
"README.md", | ||
"config_dit_mel_seed.yml", | ||
"hifigan.yml", | ||
"hift.pt", | ||
"speech_tokenizer_v1.onnx", | ||
] | ||
|
||
check_and_download_files(repo_id, local_dir, files) |