Spaces:
Runtime error
Runtime error
RSPMetaAdmin
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,6 @@ os.system(f"sed -i -e '108,113d' /home/user/app/stable-diffusion-webui/modules/u
|
|
13 |
os.system(f"sed -i -e '225,227d' /home/user/app/stable-diffusion-webui/modules/ui_loadsave.py")
|
14 |
os.system(f"sed -i -e '214,217d' /home/user/app/stable-diffusion-webui/modules/ui_loadsave.py")
|
15 |
os.system(f"rm -rfv /home/user/app/stable-diffusion-webui/scripts/")
|
16 |
-
os.system(f"rm -rfv /home/user/app/stable-diffusion-webui/scripts/")
|
17 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/neofake/Juggernaut-Reborn/resolve/main/juggernaut_reborn.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o 1-5_Juggernaut.safetensors")
|
18 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/jzli/DreamShaper-8/resolve/main/dreamshaper_8.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o 1-5_Dreamshaper.safetensors")
|
19 |
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RunDiffusion/Juggernaut-XL-v9/resolve/main/Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o XL_Juggernaut.safetensors")
|
@@ -23,17 +22,18 @@ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggin
|
|
23 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RSPMetaAdmin/RSP_Models/resolve/main/architectureUrbanSdlife_v60.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o architectureUrbanSdlife_v60.safetensors")
|
24 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RSPMetaAdmin/RSP_Models/resolve/main/dvarchMultiPrompt_dvarchExterior.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o dvarchMultiPrompt_dvarchExterior.safetensors")
|
25 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V6.0_B1_noVAE/resolve/main/Realistic_Vision_V6.0_NV_B1_inpainting.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V6.0_NV_B1_inpainting.safetensors")
|
26 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/RealVisXL_V4.0/resolve/main/RealVisXL_V4.0.safetensors -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o
|
27 |
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RSPMetaAdmin/RSP_Models/resolve/main/FormFinder-XL_v2.safetensors -d /home/user/app/stable-diffusion-webui/models/Lora -o FormFinder-XL_v2.safetensors")
|
28 |
-
os.chdir(f"/home/user/app/stable-diffusion-webui/extensions")
|
29 |
|
|
|
|
|
30 |
os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git")
|
31 |
os.system(f"git clone https://github.com/ahgsql/StyleSelectorXL.git")
|
32 |
os.system(f"git clone https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git")
|
33 |
os.system(f"git clone https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git")
|
34 |
# Installing required dependencies (if any)
|
35 |
os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")
|
36 |
-
|
37 |
# Download models using aria2c
|
38 |
#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")
|
39 |
#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")
|
@@ -55,4 +55,4 @@ os.chdir(f"/home/user/app/stable-diffusion-webui")
|
|
55 |
# Refer to the extension's documentation for specific instructions
|
56 |
|
57 |
# Launching the webui
|
58 |
-
os.system(f"python launch.py --cors-allow-origins=* --xformers --theme dark --gradio-queue --ui-settings-file /home/user/app/shared-config_v2.json --ui-config-file /home/user/app/shared-ui-config_v2.json")
|
|
|
13 |
os.system(f"sed -i -e '225,227d' /home/user/app/stable-diffusion-webui/modules/ui_loadsave.py")
|
14 |
os.system(f"sed -i -e '214,217d' /home/user/app/stable-diffusion-webui/modules/ui_loadsave.py")
|
15 |
os.system(f"rm -rfv /home/user/app/stable-diffusion-webui/scripts/")
|
|
|
16 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/neofake/Juggernaut-Reborn/resolve/main/juggernaut_reborn.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o 1-5_Juggernaut.safetensors")
|
17 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/jzli/DreamShaper-8/resolve/main/dreamshaper_8.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o 1-5_Dreamshaper.safetensors")
|
18 |
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RunDiffusion/Juggernaut-XL-v9/resolve/main/Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o XL_Juggernaut.safetensors")
|
|
|
22 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RSPMetaAdmin/RSP_Models/resolve/main/architectureUrbanSdlife_v60.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o architectureUrbanSdlife_v60.safetensors")
|
23 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RSPMetaAdmin/RSP_Models/resolve/main/dvarchMultiPrompt_dvarchExterior.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o dvarchMultiPrompt_dvarchExterior.safetensors")
|
24 |
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V6.0_B1_noVAE/resolve/main/Realistic_Vision_V6.0_NV_B1_inpainting.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V6.0_NV_B1_inpainting.safetensors")
|
25 |
+
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/RealVisXL_V4.0/resolve/main/RealVisXL_V4.0.safetensors -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o RealVisXL_V4_0.safetensors")
|
26 |
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RSPMetaAdmin/RSP_Models/resolve/main/FormFinder-XL_v2.safetensors -d /home/user/app/stable-diffusion-webui/models/Lora -o FormFinder-XL_v2.safetensors")
|
|
|
27 |
|
28 |
+
# Cloning the sd-webui-controlnet extension
|
29 |
+
os.chdir(f"/home/user/app/stable-diffusion-webui/extensions")
|
30 |
os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git")
|
31 |
os.system(f"git clone https://github.com/ahgsql/StyleSelectorXL.git")
|
32 |
os.system(f"git clone https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git")
|
33 |
os.system(f"git clone https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git")
|
34 |
# Installing required dependencies (if any)
|
35 |
os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")
|
36 |
+
|
37 |
# Download models using aria2c
|
38 |
#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")
|
39 |
#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")
|
|
|
55 |
# Refer to the extension's documentation for specific instructions
|
56 |
|
57 |
# Launching the webui
|
58 |
+
os.system(f"python launch.py --cors-allow-origins=* --xformers --theme dark --gradio-queue --ui-settings-file /home/user/app/shared-config_v2.json --ui-config-file /home/user/app/shared-ui-config_v2.json")
|