File size: 1,747 Bytes
5773d49 66f4715 5773d49 b0a17f8 5773d49 b0a17f8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import subprocess, os
subprocess.run(['wget', 'https://github.com/nolanaatama/microsoftexcel/raw/main/memfix.zip', '-O', 'memfix.zip'], check=True)
subprocess.run(['unzip', 'memfix.zip'])
subprocess.run(['git', 'clone', 'https://github.com/nolanaatama/microsoftexcel-controlnet', 'microsoftexcel/extensions/microsoftexcel-controlnet'])
subprocess.run(['git', 'clone', 'https://github.com/Bing-su/adetailer', 'microsoftexcel/extensions/adetailer'])
subprocess.run(['git', 'clone', 'https://huggingface.co/Bingsu/adetailer', 'microsoftexcel/models/adetailer'])
subprocess.run(['wget', 'https://huggingface.co/nolanaatama/colab/resolve/main/microsoftexcel-images-browser.zip', '-O', 'microsoftexcel/extensions/microsoftexcel-images-browser.zip'], check=True)
# files = {
# "microsoftexcel/extensions/microsoftexcel-images-browser.zip":"https://huggingface.co/nolanaatama/colab/resolve/main/microsoftexcel-images-browser.zip",
# "hubert/hubert_base.pt":"https://huggingface.co/Rejekts/project/resolve/main/hubert_base.pt",
# "pretrained_v2/D40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/D40k.pth",
# "pretrained_v2/G40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/G40k.pth",
# "pretrained_v2/f0D40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/f0D40k.pth",
# "pretrained_v2/f0G40k.pth":"https://huggingface.co/Rejekts/project/resolve/main/f0G40k.pth"
# }
# for file, link in files.items():
# file_path = os.path.join(assets_folder, file)
# if not os.path.exists(file_path):
# try:
# subprocess.run(['wget', link, '-O', file_path], check=True)
# except subprocess.CalledProcessError as e:
# print(f"Error downloading {file}: {e}")
# # |