RSPMetaAdmin commited on
Commit
240d94a
1 Parent(s): eb7f9e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -10
app.py CHANGED
@@ -14,9 +14,9 @@ os.system(f"sed -i -e '225,227d' /home/user/app/stable-diffusion-webui/modules/u
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 juggernaut_reborn.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 dreamshaper_8.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 Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors")
19
- #os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/misri/epicrealismXL_v5Ultimate/resolve/main/epicrealismXL_v5Ultimate.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o epicrealismXL_v5Ultimate.safetensors")
20
  #os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V2.0/blob/main/Realistic_Vision_V2.0.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V2.0.safetensors")
21
  #os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RSPMetaAdmin/RSP_Models/resolve/main/architectureExterior_v40Exterior.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o architectureExterior_v40Exterior.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")
@@ -27,19 +27,25 @@ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggin
27
  # Cloning the sd-webui-controlnet extension
28
  os.chdir(f"/home/user/app/stable-diffusion-webui/extensions")
29
  os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git")
30
-
31
  # Installing required dependencies (if any)
32
  os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")
33
 
34
  # Download models using aria2c
35
  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")
36
- #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")
37
- #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")
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_v11p_sd15_lineart.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o Lineart.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_mlsd.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o MLSD.pth")
40
- #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_scribble.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o Scribble.pth")
41
- #os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bdsqlsz/qinglong_controlnet-lllite/resolve/main/bdsqlsz_controlllite_xl_mlsd_V2.safetensors -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o bdsqlsz_controlllite_xl_mlsd_V2.safetensors")
 
 
 
 
42
  os.chdir(f"/home/user/app/stable-diffusion-webui")
 
 
43
  # Check the extension's documentation for specific dependencies
44
 
45
  # Modifying configuration files (if necessary)
 
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 juggernaut_reborn.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 dreamshaper_8.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 Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors")
19
+ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/misri/epicrealismXL_v5Ultimate/resolve/main/epicrealismXL_v5Ultimate.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o epicrealismXL_v5Ultimate.safetensors")
20
  #os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SG161222/Realistic_Vision_V2.0/blob/main/Realistic_Vision_V2.0.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o Realistic_Vision_V2.0.safetensors")
21
  #os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/RSPMetaAdmin/RSP_Models/resolve/main/architectureExterior_v40Exterior.safetensors -d /home/user/app/stable-diffusion-webui/models/Stable-diffusion -o architectureExterior_v40Exterior.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")
 
27
  # Cloning the sd-webui-controlnet extension
28
  os.chdir(f"/home/user/app/stable-diffusion-webui/extensions")
29
  os.system(f"git clone https://github.com/Mikubill/sd-webui-controlnet.git")
30
+ os.system(f"git clone https://github.com/ahgsql/StyleSelectorXL.git")
31
  # Installing required dependencies (if any)
32
  os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")
33
 
34
  # Download models using aria2c
35
  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")
36
+ 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")
37
+ 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")
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_v11p_sd15_lineart.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o Lineart.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_mlsd.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o MLSD.pth")
40
+ 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_scribble.pth -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o Scribble.pth")
41
+ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bdsqlsz/qinglong_controlnet-lllite/resolve/main/bdsqlsz_controlllite_xl_mlsd_V2.safetensors -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o xl_mlsd_V2.safetensors")
42
+ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/bdsqlsz/qinglong_controlnet-lllite/resolve/main/bdsqlsz_controlllite_xl_lineart_anime_denoise.safetensors -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o xl_lineart_anime_denoise.safetensors")
43
+ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/SargeZT/t2i-adapter-sdxl-segmentation/resolve/main/diffusion_pytorch_model.safetensors -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o t2i_adapter_sdxl_segmentation")
44
+ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_canny_mid.safetensors -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o xl_canny_mid.safetensors")
45
+ os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lllyasviel/sd_control_collection/resolve/main/diffusers_xl_depth_mid.safetensors -d /home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models -o xl_depth_mid.safetensor")
46
  os.chdir(f"/home/user/app/stable-diffusion-webui")
47
+
48
+
49
  # Check the extension's documentation for specific dependencies
50
 
51
  # Modifying configuration files (if necessary)