r0seyyyd33p
commited on
Commit
•
b0a17f8
1
Parent(s):
5773d49
Upload download_files.py
Browse files- download_files.py +4 -2
download_files.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import subprocess, os
|
2 |
-
assets_folder = "./
|
3 |
if not os.path.exists(assets_folder):
|
4 |
os.makedirs(assets_folder)
|
5 |
|
@@ -8,9 +8,10 @@ subprocess.run(['unzip', './memfix.zip'])
|
|
8 |
subprocess.run(['git', 'clone', 'https://github.com/nolanaatama/microsoftexcel-controlnet', './microsoftexcel/extensions/microsoftexcel-controlnet'])
|
9 |
subprocess.run(['git', 'clone', 'https://github.com/Bing-su/adetailer', './microsoftexcel/extensions/adetailer'])
|
10 |
subprocess.run(['git', 'clone', 'https://huggingface.co/Bingsu/adetailer', './microsoftexcel/models/adetailer'])
|
|
|
11 |
|
12 |
# files = {
|
13 |
-
# "
|
14 |
# "hubert/hubert_base.pt":"https://huggingface.co/Rejekts/project/resolve/main/hubert_base.pt",
|
15 |
# "pretrained_v2/D40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/D40k.pth",
|
16 |
# "pretrained_v2/G40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/G40k.pth",
|
@@ -24,3 +25,4 @@ subprocess.run(['git', 'clone', 'https://huggingface.co/Bingsu/adetailer', './mi
|
|
24 |
# subprocess.run(['wget', link, '-O', file_path], check=True)
|
25 |
# except subprocess.CalledProcessError as e:
|
26 |
# print(f"Error downloading {file}: {e}")
|
|
|
|
1 |
import subprocess, os
|
2 |
+
assets_folder = "./"
|
3 |
if not os.path.exists(assets_folder):
|
4 |
os.makedirs(assets_folder)
|
5 |
|
|
|
8 |
subprocess.run(['git', 'clone', 'https://github.com/nolanaatama/microsoftexcel-controlnet', './microsoftexcel/extensions/microsoftexcel-controlnet'])
|
9 |
subprocess.run(['git', 'clone', 'https://github.com/Bing-su/adetailer', './microsoftexcel/extensions/adetailer'])
|
10 |
subprocess.run(['git', 'clone', 'https://huggingface.co/Bingsu/adetailer', './microsoftexcel/models/adetailer'])
|
11 |
+
subprocess.run(['wget', 'https://huggingface.co/nolanaatama/colab/resolve/main/microsoftexcel-images-browser.zip', '-O', './microsoftexcel/extensions/microsoftexcel-images-browser.zip'], check=True)
|
12 |
|
13 |
# files = {
|
14 |
+
# "microsoftexcel/extensions/microsoftexcel-images-browser.zip":"https://huggingface.co/nolanaatama/colab/resolve/main/microsoftexcel-images-browser.zip",
|
15 |
# "hubert/hubert_base.pt":"https://huggingface.co/Rejekts/project/resolve/main/hubert_base.pt",
|
16 |
# "pretrained_v2/D40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/D40k.pth",
|
17 |
# "pretrained_v2/G40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/G40k.pth",
|
|
|
25 |
# subprocess.run(['wget', link, '-O', file_path], check=True)
|
26 |
# except subprocess.CalledProcessError as e:
|
27 |
# print(f"Error downloading {file}: {e}")
|
28 |
+
# #
|