Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,10 +22,13 @@ os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git")
|
|
| 22 |
|
| 23 |
# Installing required dependencies (if any)
|
| 24 |
os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
os.system(f"
|
| 28 |
-
os.system(f"
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# Check the extension's documentation for specific dependencies
|
| 31 |
|
|
|
|
| 22 |
|
| 23 |
# Installing required dependencies (if any)
|
| 24 |
os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")
|
| 25 |
+
|
| 26 |
+
# Download models using aria2c
|
| 27 |
+
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o Depth.pth")
|
| 28 |
+
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o Canny.pth")
|
| 29 |
+
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o Seg.pth")
|
| 30 |
+
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o Lineart.pth")
|
| 31 |
+
|
| 32 |
|
| 33 |
# Check the extension's documentation for specific dependencies
|
| 34 |
|