Add files using upload-large-folder tool
Browse files- .gitattributes +4 -0
- assets/__pycache__/model_tools.cpython-313.pyc +0 -0
- assets/model_tools.py +14 -3
- light.th +3 -0
- light_extra.th +3 -0
.gitattributes
CHANGED
|
@@ -49,3 +49,7 @@ tasnet_extra.th filter=lfs diff=lfs merge=lfs -text
|
|
| 49 |
tasnet.th filter=lfs diff=lfs merge=lfs -text
|
| 50 |
fa0cb7f9-100d8bf4.th filter=lfs diff=lfs merge=lfs -text
|
| 51 |
9a6b4851-03af0aa6.th filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
tasnet.th filter=lfs diff=lfs merge=lfs -text
|
| 50 |
fa0cb7f9-100d8bf4.th filter=lfs diff=lfs merge=lfs -text
|
| 51 |
9a6b4851-03af0aa6.th filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
mel_band_roformer_instrumental_fullness_v1_gabox.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
mel_band_roformer_instrumental_fullness_v2_gabox.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
light_extra.th filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
light.th filter=lfs diff=lfs merge=lfs -text
|
assets/__pycache__/model_tools.cpython-313.pyc
CHANGED
|
Binary files a/assets/__pycache__/model_tools.cpython-313.pyc and b/assets/__pycache__/model_tools.cpython-313.pyc differ
|
|
|
assets/model_tools.py
CHANGED
|
@@ -13,6 +13,18 @@ from huggingface_hub import HfApi, snapshot_download
|
|
| 13 |
|
| 14 |
|
| 15 |
def download_files_from_txt(filename, local_dir):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
print(f"Starting downloads with aria2c in directory: {os.path.abspath(local_dir)}")
|
| 17 |
try:
|
| 18 |
# Execute the command
|
|
@@ -29,9 +41,8 @@ def download_files_from_txt(filename, local_dir):
|
|
| 29 |
except Exception as e:
|
| 30 |
print(f"An unexpected error occurred: {e}")
|
| 31 |
finally:
|
| 32 |
-
#
|
| 33 |
-
|
| 34 |
-
print(f"Removed temporary input file: {temp_input_file_path}")
|
| 35 |
|
| 36 |
|
| 37 |
def download_hf_repo(repo_id, local_dir, repo_type, token):
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
def download_files_from_txt(filename, local_dir):
|
| 16 |
+
command = [
|
| 17 |
+
"aria2c",
|
| 18 |
+
"--input-file",
|
| 19 |
+
filename,
|
| 20 |
+
"--dir",
|
| 21 |
+
local_dir,
|
| 22 |
+
"-c", # Continue downloading a partially downloaded file
|
| 23 |
+
"-j",
|
| 24 |
+
"30", # Set max concurrent downloads (adjust as needed)
|
| 25 |
+
"-x",
|
| 26 |
+
"16", # Set max connections per server (adjust as needed)
|
| 27 |
+
]
|
| 28 |
print(f"Starting downloads with aria2c in directory: {os.path.abspath(local_dir)}")
|
| 29 |
try:
|
| 30 |
# Execute the command
|
|
|
|
| 41 |
except Exception as e:
|
| 42 |
print(f"An unexpected error occurred: {e}")
|
| 43 |
finally:
|
| 44 |
+
# os.remove(filename)
|
| 45 |
+
print(f"Downloaded all files: {filename}")
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
def download_hf_repo(repo_id, local_dir, repo_type, token):
|
light.th
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79d1ee3c1541c729c552327756954340a1a46a11ce0009dea77dc583e4b6269c
|
| 3 |
+
size 1062727712
|
light_extra.th
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e9b4af564229c80cc73c95d02d2058235bb054c6874b3cba4d5b26943a5ddcb
|
| 3 |
+
size 1062727712
|