Create extensions.py
Browse files- extensions.py +31 -0
extensions.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import git
|
| 2 |
+
|
| 3 |
+
def git_clone(repo_url, destination_folder):
|
| 4 |
+
try:
|
| 5 |
+
repo = git.Repo.clone_from(repo_url, destination_folder)
|
| 6 |
+
print(f"Repository {repo_url} cloned successfully.")
|
| 7 |
+
except git.exc.GitCommandError as e:
|
| 8 |
+
print(f"Error cloning repository {repo_url}: {e}")
|
| 9 |
+
|
| 10 |
+
# Replace these with your desired repository URLs and destination folders
|
| 11 |
+
repositories = [
|
| 12 |
+
|
| 13 |
+
{"url": "https://github.com/sunnyark/civitai-shortcut.git", "folder": "/content/microsoftexcel/extensions/civitai-shortcut"},
|
| 14 |
+
{"url": "https://github.com/Uminosachi/sd-webui-inpaint-anything.git", "folder": "/content/microsoftexcel/extensions/sd-webui-inpaint-anything"},
|
| 15 |
+
{"url": "https://github.com/continue-revolution/sd-webui-segment-anything.git", "folder": "/content/microsoftexcel/extensions/sd-webui-segment-anything"},
|
| 16 |
+
{"url": "https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git", "folder": "/content/microsoftexcel/extensions/sd-dynamic-thresholding"},
|
| 17 |
+
{"url": "https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git", "folder": "/content/microsoftexcel/extensions/stable-diffusion-webui-images-browser"},
|
| 18 |
+
#{"url": "https://github.com/nolanaatama/microsoftexcel-tunnels.git", "folder": "/content/imagination/extensions/microsoftexcel-tunnels"},
|
| 19 |
+
#{"url": "https://github.com/nolanaatama/microsoftexcel-controlnet.git", "folder": "/content/imagination/extensions/microsoftexcel-controlnet"},
|
| 20 |
+
#{"url": "https://github.com/fkunn1326/openpose-editor", "folder": "/content/imagination/extensions/openpose-editor"},
|
| 21 |
+
#{"url": "https://github.com/nolanaatama/microsoftexcel-3d-open-pose-editor", "folder": "/content/imagination/extensions/microsoftexcel-3d-open-pose-editor"},
|
| 22 |
+
#{"url": "https://github.com/nolanaatama/a1111-microsoftexcel-tagcomplete", "folder": "/content/imagination/extensions/a1111-microsoftexcel-tagcomplete"},
|
| 23 |
+
#{"url": "https://github.com/nolanaatama/a1111-microsoftexcel-locon", "folder": "/content/imagination/extensions/a1111-microsoftexcel-locon"},
|
| 24 |
+
#{"url": "https://github.com/Bing-su/adetailer", "folder": "/content/imagination/extensions/adetailer"}, # !After Detailer
|
| 25 |
+
#{"url": "https://huggingface.co/Bingsu/adetailer", "folder": "/content/imagination/models/adetailer"}, # !After Detailer
|
| 26 |
+
#{"url": "https://github.com/nolanaatama/microsoftexcel-roop", "folder": "/content/imagination/extensions/microsoftexcel-roop"}, # roop
|
| 27 |
+
#{"url": "https://github.com/Coyote-A/ultimate-upscale-for-automatic1111", "folder": "/content/imagination/extensions/ultimate-upscale-for-automatic1111"}, # Ultimate SD Upscale
|
| 28 |
+
]
|
| 29 |
+
|
| 30 |
+
for repo_info in repositories:
|
| 31 |
+
git_clone(repo_info["url"], repo_info["folder"])
|