Spaces:
Runtime error
Runtime error
RSPMetaAdmin
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ import os
|
|
3 |
os.chdir(f"/home/user/app")
|
4 |
os.system(f"git clone -b v2.6 https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
5 |
os.chdir(f"/home/user/app/stable-diffusion-webui")
|
|
|
|
|
6 |
os.system(f"git lfs install")
|
7 |
os.system(f"git reset --hard")
|
8 |
os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch_v2.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
@@ -17,24 +19,14 @@ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggin
|
|
17 |
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE/resolve/main/Realistic_Vision_V5.1.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V5.1.safetensors")
|
18 |
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE/resolve/main/Realistic_Vision_V5.1.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V5.1.safetensors")
|
19 |
# Cloning the sd-webui-controlnet extension
|
20 |
-
|
21 |
-
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 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/
|
26 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/
|
27 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/
|
28 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/
|
29 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_inpaint.pth")
|
30 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_lineart.pth")
|
31 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_mlsd.pth")
|
32 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_normalbae.pth")
|
33 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_openpose.pth")
|
34 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_scribble.pth")
|
35 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_seg.pth")
|
36 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_softedge.pth")
|
37 |
-
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15s2_lineart_anime.pth")
|
38 |
|
39 |
# Check the extension's documentation for specific dependencies
|
40 |
|
|
|
3 |
os.chdir(f"/home/user/app")
|
4 |
os.system(f"git clone -b v2.6 https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
5 |
os.chdir(f"/home/user/app/stable-diffusion-webui")
|
6 |
+
os.chdir(f"/home/user/app/stable-diffusion-webui/extensions")
|
7 |
+
os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git")
|
8 |
os.system(f"git lfs install")
|
9 |
os.system(f"git reset --hard")
|
10 |
os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch_v2.py' /home/user/app/stable-diffusion-webui/modules/ui.py")
|
|
|
19 |
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE/resolve/main/Realistic_Vision_V5.1.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V5.1.safetensors")
|
20 |
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V5.1_noVAE/resolve/main/Realistic_Vision_V5.1.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V5.1.safetensors")
|
21 |
# Cloning the sd-webui-controlnet extension
|
22 |
+
|
|
|
23 |
|
24 |
# Installing required dependencies (if any)
|
25 |
os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")
|
26 |
+
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth.pth")
|
27 |
+
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny.pth")
|
28 |
+
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg.pth")
|
29 |
+
os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart.pth")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
# Check the extension's documentation for specific dependencies
|
32 |
|