Download setup.sh from YureDaaed/comfy-script: direct link, hf CLI and curl.
- Browser
- Download file 5.51 kB
-
https://huggingface.co/datasets/YureDaaed/comfy-script/resolve/cca94de1e2f5e96fec4c6650a1df4fa6f1085581/setup.sh
- Command line
-
hf download hf://datasets/YureDaaed/comfy-script@cca94de1e2f5e96fec4c6650a1df4fa6f1085581/setup.sh
-
curl -L -o setup.sh https://huggingface.co/datasets/YureDaaed/comfy-script/resolve/cca94de1e2f5e96fec4c6650a1df4fa6f1085581/setup.sh
5.51 kB
| set -eo pipefail | |
| echo "==========================================" | |
| echo "Starting ComfyUI provisioning script..." | |
| echo "==========================================" | |
| # ---------- Directory definitions ---------- | |
| BASE_DIR="/workspace/ComfyUI" | |
| CUSTOM_NODES_DIR="$BASE_DIR/custom_nodes" | |
| DIFFUSION_MODELS_DIR="$BASE_DIR/models/diffusion_models" | |
| UNET_DIR="$BASE_DIR/models/unet" | |
| TEXT_ENCODERS_DIR="$BASE_DIR/models/text_encoders" | |
| VAE_DIR="$BASE_DIR/models/vae" | |
| CONTROLNET_DIR="$BASE_DIR/models/controlnet" | |
| WORKFLOWS_DIR="$BASE_DIR/user/default/workflows" | |
| mkdir -p "$CUSTOM_NODES_DIR" "$DIFFUSION_MODELS_DIR" "$UNET_DIR" \ | |
| "$TEXT_ENCODERS_DIR" "$VAE_DIR" "$CONTROLNET_DIR" "$WORKFLOWS_DIR" | |
| # ---------- Helper: Civitai download with referer ---------- | |
| download_civitai() { | |
| local url="$1" | |
| local output="$2" | |
| wget --header="Referer: https://civitai.com" -O "$output" "$url" | |
| } | |
| # ---------- 1. Custom Nodes (Extensions) ---------- | |
| echo ">>> Cloning custom nodes..." | |
| git clone --depth 1 https://gitlab.com/UmeAiRT-Studio/comfyui-umeairt-toolkit.git "$CUSTOM_NODES_DIR/comfyui-umeairt-toolkit" || true | |
| git clone --depth 1 https://github.com/Mirumo0u0/ComfyUI-Cosmos-Reference.git "$CUSTOM_NODES_DIR/ComfyUI-Cosmos-Reference" || true | |
| git clone --depth 1 https://github.com/kohya-ss/ComfyUI-Anima-LLLite.git "$CUSTOM_NODES_DIR/ComfyUI-Anima-LLLite" || true | |
| git clone --depth 1 https://github.com/scraed/LanPaint.git "$CUSTOM_NODES_DIR/LanPaint" || true | |
| # Install dependencies for each custom node (if any) | |
| for node in "$CUSTOM_NODES_DIR"/*; do | |
| if [[ -f "$node/requirements.txt" ]]; then | |
| echo ">>> Installing requirements for $(basename $node)..." | |
| pip install -r "$node/requirements.txt" --quiet || true | |
| fi | |
| done | |
| # ---------- 2. Diffusion Models (checkpoints) ---------- | |
| echo ">>> Downloading diffusion models..." | |
| # From HuggingFace (circlestone-labs/Anima) | |
| wget -O "$DIFFUSION_MODELS_DIR/anima-base-v1.0.safetensors" \ | |
| "https://huggingface.co/circlestone-labs/Anima/resolve/main/split_files/diffusion_models/anima-base-v1.0.safetensors" | |
| wget -O "$DIFFUSION_MODELS_DIR/anima-turbo-v1.0.safetensors" \ | |
| "https://huggingface.co/circlestone-labs/Anima/resolve/main/split_files/diffusion_models/anima-turbo-v1.0.safetensors" | |
| # From Civitai (using model/file IDs) | |
| download_civitai "https://civitai.red/api/download/models/3089149?fileId=2968664" \ | |
| "$DIFFUSION_MODELS_DIR/anima_civitai_3089149.safetensors" | |
| download_civitai "https://civitai.red/api/download/models/2978373?fileId=2857988" \ | |
| "$DIFFUSION_MODELS_DIR/anima_civitai_2978373.safetensors" | |
| download_civitai "https://civitai.red/api/download/models/3036905?fileId=2915794" \ | |
| "$DIFFUSION_MODELS_DIR/anima_civitai_3036905.safetensors" | |
| # ---------- 3. GGUF version (goes into models/unet) ---------- | |
| echo ">>> Downloading GGUF model..." | |
| wget -O "$UNET_DIR/anima-base-v1.0-Q8_0.gguf" \ | |
| "https://huggingface.co/UmeAiRT/ComfyUI-Auto-Installer-Assets/resolve/main/models/diffusion_models/Anima/anima-base-v1.0-Q8_0.gguf?download=true" | |
| # ---------- 4. Text Encoder ---------- | |
| echo ">>> Downloading text encoder..." | |
| wget -O "$TEXT_ENCODERS_DIR/qwen_3_06b_base.safetensors" \ | |
| "https://huggingface.co/UmeAiRT/ComfyUI-Auto-Installer-Assets/resolve/main/models/text_encoders/QWEN/qwen_3_06b_base.safetensors" | |
| # ---------- 5. VAE ---------- | |
| echo ">>> Downloading VAE..." | |
| wget -O "$VAE_DIR/qwen_image_vae.safetensors" \ | |
| "https://huggingface.co/UmeAiRT/ComfyUI-Auto-Installer-Assets/resolve/main/models/vae/qwen_image_vae.safetensors" | |
| # ---------- 6. Anima ControlNet / LLLite ---------- | |
| echo ">>> Downloading ControlNet / LLLite models..." | |
| # Entire HF repo (kohya-ss/Anima-LLLite) – we store it as a subfolder under controlnet | |
| if [[ ! -d "$CONTROLNET_DIR/Anima-LLLite" ]]; then | |
| echo "Cloning Anima-LLLite repo from HuggingFace..." | |
| git clone --depth 1 https://huggingface.co/kohya-ss/Anima-LLLite "$CONTROLNET_DIR/Anima-LLLite" || true | |
| fi | |
| # Two additional Civitai ControlNet models | |
| download_civitai "https://civitai.red/api/download/models/3068951?fileId=2947687" \ | |
| "$CONTROLNET_DIR/controlnet_3068951.safetensors" | |
| download_civitai "https://civitai.red/api/download/models/3026450?fileId=2905226" \ | |
| "$CONTROLNET_DIR/controlnet_3026450.safetensors" | |
| # ---------- 7. Workflows ---------- | |
| echo ">>> Downloading workflows..." | |
| download_civitai "https://civitai.red/api/download/models/3012166?fileId=2891167" \ | |
| "$WORKFLOWS_DIR/workflow_3012166.json" | |
| download_civitai "https://civitai.red/api/download/models/3015408?fileId=2894362" \ | |
| "$WORKFLOWS_DIR/workflow_3015408.json" | |
| download_civitai "https://civitai.red/api/download/models/3032221?fileId=2911092" \ | |
| "$WORKFLOWS_DIR/workflow_3032221.json" | |
| download_civitai "https://civitai.red/api/download/models/3032360?fileId=2911253" \ | |
| "$WORKFLOWS_DIR/workflow_3032360.json" | |
| download_civitai "https://civitai.red/api/download/models/3102845?fileId=2982677" \ | |
| "$WORKFLOWS_DIR/workflow_3102845.json" | |
| download_civitai "https://civitai.red/api/download/models/2958554?fileId=2837926" \ | |
| "$WORKFLOWS_DIR/workflow_2958554.json" | |
| download_civitai "https://civitai.red/api/download/models/2979081?fileId=2858654" \ | |
| "$WORKFLOWS_DIR/workflow_2979081.json" | |
| echo "==========================================" | |
| echo "All downloads complete!" | |
| echo "Please restart ComfyUI or press 'R' in the UI to reload models." | |
| echo "==========================================" |