Upload run_setup.sh
Browse files- scripts/run_setup.sh +123 -0
scripts/run_setup.sh
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# 1. Download ComfyUI
|
| 4 |
+
echo "βοΈ»γβββδΈπ₯ Runpod ComfyUI Setup Triggered"
|
| 5 |
+
sleep 1
|
| 6 |
+
echo "β οΈ Please Ensure You Have 250 GB Minimum Available!"
|
| 7 |
+
sleep 1
|
| 8 |
+
echo "β‘οΈ Cloning ComfyUI ...β"
|
| 9 |
+
cd /workspace
|
| 10 |
+
git clone https://github.com/comfyanonymous/ComfyUI.git
|
| 11 |
+
echo "β
ComfyUI Cloned Successfully!"
|
| 12 |
+
|
| 13 |
+
# 2. Creating Python venv
|
| 14 |
+
echo "β‘οΈ Creating Python Virtual Environment ...β"
|
| 15 |
+
cd ComfyUI
|
| 16 |
+
python3 -m venv venv
|
| 17 |
+
source venv/bin/activate
|
| 18 |
+
echo "β
Python Virtual Environment Created Successfully!"
|
| 19 |
+
|
| 20 |
+
# 3. Run ComfyUI requirements
|
| 21 |
+
echo "β‘οΈ Installing ComfyUI Requirements ...β"
|
| 22 |
+
pip install -r requirements.txt
|
| 23 |
+
echo "β
ComfyUI Requirements Installed Successfully!"
|
| 24 |
+
|
| 25 |
+
# 4. Download ComfyUI-Manager
|
| 26 |
+
echo "β‘οΈ Installing ComfyUI-Manager ...β"
|
| 27 |
+
cd custom_nodes
|
| 28 |
+
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
|
| 29 |
+
echo "β
ComfyUI-Manager Installed Successfully!"
|
| 30 |
+
|
| 31 |
+
# 5. Run ComfyUI-Manager requirements
|
| 32 |
+
echo "β‘οΈ Installing ComfyUI-Manager Requirements ...β"
|
| 33 |
+
cd ComfyUI-Manager
|
| 34 |
+
pip install -r requirements.txt
|
| 35 |
+
echo "β
ComfyUI-Manager Requirements Installed Successfully!"
|
| 36 |
+
|
| 37 |
+
# 6. Create specific directory structure
|
| 38 |
+
echo "β‘οΈ Creating Necessary Directories ...β"
|
| 39 |
+
cd /workspace/ComfyUI
|
| 40 |
+
mkdir -p input/Captioning input/Voices
|
| 41 |
+
mkdir -p output/Z-Image output/Qwen-Image output/WanRaw output/Videos output/Captions
|
| 42 |
+
mkdir -p models/checkpoints/Qwen
|
| 43 |
+
mkdir -p models/vae/Qwen models/vae/Z-Image models/vae/Wan
|
| 44 |
+
mkdir -p models/text_encoders/Qwen models/text_encoders/Z-Image models/text_encoders/Wan
|
| 45 |
+
mkdir -p models/diffusion_models/Qwen models/diffusion_models/Z-Image models/diffusion_models/WanI2V
|
| 46 |
+
mkdir -p models/loras/Z-Image models/loras/Qwen models/loras/WanI2V
|
| 47 |
+
echo "β
Necessary Directories Created Successfully!"
|
| 48 |
+
|
| 49 |
+
# 7. Download necessary models
|
| 50 |
+
echo "β‘οΈ Downloading Necessary Models ...β"
|
| 51 |
+
echo "π Downloading Phr00t Qwen-Image-Edit-Rapid-AIO ...β"
|
| 52 |
+
cd /workspace/ComfyUI/models/checkpoints/Qwen
|
| 53 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/Qwen-Rapid-AIO-NSFW-v23.safetensors?download=true" --content-disposition
|
| 54 |
+
echo "β
Download Complete!"
|
| 55 |
+
|
| 56 |
+
echo "π Downloading Z-Image-Turbo Models ...β"
|
| 57 |
+
cd /workspace/ComfyUI/models/diffusion_models/Z-Image
|
| 58 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/ZIT-NSFW-PhotorealisticV6.2-bf16.safetensors?download=true" --content-disposition
|
| 59 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/ZIT-bf16-Vanila.safetensors?download=true" --content-disposition
|
| 60 |
+
cd /workspace/ComfyUI/models/text_encoders/Z-Image
|
| 61 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/text-encoder/qwen_3_4b.safetensors?download=true" --content-disposition
|
| 62 |
+
cd /workspace/ComfyUI/models/vae/Z-Image
|
| 63 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/vae/ae.safetensors?download=true" --content-disposition
|
| 64 |
+
echo "β
Download Complete!"
|
| 65 |
+
|
| 66 |
+
echo "π Downloading Wan2.2 Image To Video Models ...β"
|
| 67 |
+
cd /workspace/ComfyUI/models/diffusion_models/WanI2V
|
| 68 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/wan2.2-i2v-high-DaSiWaV9.safetensors?download=true" --content-disposition
|
| 69 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/wan2.2-i2v-low-DaSiWaV9.safetensors?download=true" --content-disposition
|
| 70 |
+
cd /workspace/ComfyUI/models/text_encoders/Wan
|
| 71 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/text-encoder/nsfw_wan_umt5-xxl_fp8_scaled.safetensors?download=true" --content-disposition
|
| 72 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/text-encoder/umt5-xxl-enc-fp8_e4m3fn.safetensors?download=true" --content-disposition
|
| 73 |
+
cd /workspace/ComfyUI/models/vae/Wan
|
| 74 |
+
wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/vae/wan_2.1_vae.safetensors?download=true" --content-disposition
|
| 75 |
+
echo "β
Download Complete!"
|
| 76 |
+
|
| 77 |
+
echo "π Downloading Wan2.2 Image To Video LoRas ...β"
|
| 78 |
+
cd /workspace/ComfyUI
|
| 79 |
+
python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='iamgroot1212/wan2.2-loras', local_dir='/workspace/ComfyUI/models/loras/WanI2V', local_dir_use_symlinks=False)"
|
| 80 |
+
echo "β
Download Complete!"
|
| 81 |
+
sleep 1
|
| 82 |
+
|
| 83 |
+
# 8. Installing Custom Nodes
|
| 84 |
+
echo "β‘οΈ Installing All Custom Nodes ...β"
|
| 85 |
+
cd /workspace/ComfyUI/custom_nodes
|
| 86 |
+
git clone https://github.com/kijai/ComfyUI-WanVideoWrapper
|
| 87 |
+
git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus
|
| 88 |
+
git clone https://github.com/Fannovel16/comfyui_controlnet_aux
|
| 89 |
+
git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack
|
| 90 |
+
git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts
|
| 91 |
+
git clone https://github.com/rgthree/rgthree-comfy
|
| 92 |
+
git clone https://github.com/kijai/ComfyUI-KJNodes
|
| 93 |
+
git clone https://github.com/yolain/ComfyUI-Easy-Use
|
| 94 |
+
git clone https://github.com/crystian/ComfyUI-Crystools
|
| 95 |
+
git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite
|
| 96 |
+
git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes
|
| 97 |
+
git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation
|
| 98 |
+
git clone https://github.com/ltdrdata/was-node-suite-comfyui
|
| 99 |
+
git clone https://github.com/audioscavenger/save-image-extended-comfyui
|
| 100 |
+
git clone https://github.com/BobsBlazed/Bobs_Latent_Optimizer
|
| 101 |
+
git clone https://github.com/if-ai/ComfyUI-WanResolutionSelector
|
| 102 |
+
echo "β
Custom Nodes Installation Complete!"
|
| 103 |
+
|
| 104 |
+
# 9. Installing Custom Nodes
|
| 105 |
+
echo "β‘οΈ Installing All Custom Node Requirements ...β"
|
| 106 |
+
cd /workspace/ComfyUI/custom_nodes
|
| 107 |
+
for node_dir in */; do
|
| 108 |
+
if [ -f "$node_dir/requirements.txt" ]; then
|
| 109 |
+
pip install -r "$node_dir/requirements.txt"
|
| 110 |
+
else
|
| 111 |
+
echo "π No requirements.txt found in $node_dir"
|
| 112 |
+
fi
|
| 113 |
+
done
|
| 114 |
+
echo "β
Custom Nodes Requirements Installed Successfully!"
|
| 115 |
+
sleep 1
|
| 116 |
+
|
| 117 |
+
# 10. Setup complete
|
| 118 |
+
echo "β
All Necessary Models Downloaded Successfully!"
|
| 119 |
+
sleep 1
|
| 120 |
+
echo "β
Setup Complete! Runpod ComfyUI Ready!"
|
| 121 |
+
deactivate
|
| 122 |
+
clear
|
| 123 |
+
echo "π ComfyUI Ready For Launch!"
|