From 15c084fabc3231ffa6565180bb827ae8e2c326d3 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Wed, 9 Aug 2023 17:38:58 +0200 Subject: [PATCH] Add ControlNet support --- stable-diffusion/setup_runpod.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/stable-diffusion/setup_runpod.sh b/stable-diffusion/setup_runpod.sh index a055ac1..7a7ec15 100644 --- a/stable-diffusion/setup_runpod.sh +++ b/stable-diffusion/setup_runpod.sh @@ -62,6 +62,32 @@ cp ~/lbwpresets.txt /workspace/automatic/extensions/sd-webui-lora-block-weight/ # ControlNet +pushd /workspace/automatic/extensions-builtin/sd-webui-controlnet/annotator/midas/ +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/dpt_hybrid-midas-501f0c75.pt +popd + +pushd /workspace/automatic/extensions-builtin/sd-webui-controlnet/annotator/openpose/ +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/body_pose_model.pth +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/hand_pose_model.pth +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/facenet.pth +popd + +pushd /workspace/automatic/extensions-builtin/sd-webui-controlnet/annotator/uniformer/ +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/upernet_global_small.pth +popd + +pushd /workspace/automatic/extensions-builtin/sd-webui-controlnet/annotator/zoedepth/ +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/ZoeD_M12_N.pt +popd + +pushd /workspace/automatic/extensions-builtin/sd-webui-controlnet/annotator/oneformer + +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/150_16_swin_l_oneformer_coco_100ep.pth +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/250_16_swin_l_oneformer_ade20k_160k.pth +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/res101.pth +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/latest_net_G.pth +!curl -\# -O -L -J -C - https://huggingface.co/lllyasviel/Annotators/resolve/main/ControlNetLama.pth + cd /workspace curl -L -O -J https://github.com/rapiz1/rathole/releases/download/v0.4.8/rathole-x86_64-unknown-linux-gnu.zip