r0seyyyd33p commited on
Commit
5773d49
1 Parent(s): 54494da

working on a script to get Colabs working again and TAKE BACK WHAT'S OURS

Browse files
Files changed (1) hide show
  1. download_files.py +26 -0
download_files.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import subprocess, os
2
+ assets_folder = "./assets/"
3
+ if not os.path.exists(assets_folder):
4
+ os.makedirs(assets_folder)
5
+
6
+ subprocess.run(['wget', 'https://github.com/nolanaatama/microsoftexcel/raw/main/memfix.zip', '-O', './memfix.zip'], check=True)
7
+ 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
+ # "rmvpe/rmvpe.pt":"https://huggingface.co/Rejekts/project/resolve/main/rmvpe.pt",
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",
17
+ # "pretrained_v2/f0D40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/f0D40k.pth",
18
+ # "pretrained_v2/f0G40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/f0G40k.pth"
19
+ # }
20
+ # for file, link in files.items():
21
+ # file_path = os.path.join(assets_folder, file)
22
+ # if not os.path.exists(file_path):
23
+ # try:
24
+ # subprocess.run(['wget', link, '-O', file_path], check=True)
25
+ # except subprocess.CalledProcessError as e:
26
+ # print(f"Error downloading {file}: {e}")