RSPMetaAdmin commited on
Commit
95445bd
1 Parent(s): 3216ae7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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
- os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth.pth")
26
- os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny.pth")
27
- os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg.pth")
28
- os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart.pth")
 
 
 
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