Rejekts commited on
Commit
19a2a28
1 Parent(s): 52c1409

Upload download_files.py

Browse files
Files changed (1) hide show
  1. download_files.py +19 -0
download_files.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import subprocess, os
2
+ assets_folder = "./assets/"
3
+ if not os.path.exists(assets_folder):
4
+ os.makedirs(assets_folder)
5
+ files = {
6
+ "rmvpe/rmvpe.pt":"https://huggingface.co/Rejekts/project/resolve/main/rmvpe.pt",
7
+ "hubert/hubert_base.pt":"https://huggingface.co/Rejekts/project/resolve/main/hubert_base.pt",
8
+ "pretrained_v2/D40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/D40k.pth",
9
+ "pretrained_v2/G40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/G40k.pth",
10
+ "pretrained_v2/f0D40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/f0D40k.pth",
11
+ "pretrained_v2/f0G40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/f0G40k.pth"
12
+ }
13
+ for file, link in files.items():
14
+ file_path = os.path.join(assets_folder, file)
15
+ if not os.path.exists(file_path):
16
+ try:
17
+ subprocess.run(['wget', link, '-O', file_path], check=True)
18
+ except subprocess.CalledProcessError as e:
19
+ print(f"Error downloading {file}: {e}")