Spaces:
Runtime error
Runtime error
Update app.py
Browse files21 unmodified lines2223242526272829303121 unmodified lines# Installing required dependencies (if any)os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth.pth")os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny.pth")os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg.pth")os.system(f"wget https://huggingface.co/lllyasviel/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart.pth")# Check the extension's documentation for specific dependencies21 unmodified lines2223242526272829303132333421 unmodified lines# Installing required dependencies (if any)os.chdir(f"/home/user/app/stable-diffusion-webui/extensions/sd-webui-controlnet/models")# Download models using aria2cos.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")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")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")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")# Check the extension's documentation for specific dependencies
app.py+7-4