Upload run_setup.sh
Browse files- scripts/run_setup.sh +89 -0
scripts/run_setup.sh
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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. Setup complete
|
| 84 |
+
echo "β
All Necessary Models Downloaded Successfully!"
|
| 85 |
+
sleep 1
|
| 86 |
+
echo "β
Setup Complete! Runpod ComfyUI Ready!"
|
| 87 |
+
deactivate
|
| 88 |
+
clear
|
| 89 |
+
echo "π ComfyUI Ready For Launch!"
|