From 7ca831bfb7bf5fcd4cb0ff2736b0b716b3839b21 Mon Sep 17 00:00:00 2001 From: donny Date: Thu, 15 Oct 2026 13:02:00 -0700 Subject: [PATCH] WIP snapshot before nobara-pc migration (2026-10-15) Uncommitted and untracked work from main on nobara-pc, saved so nothing is lost during the move. Co-Authored-By: Claude Opus 5.5 --- README.md | 5 ++++- startup.sh | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c7b26b..8df7d00 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ ComfyUI Docker image for RunPod, built around the **imagelab_v3_extension** cust | `ComfyUI-Inpaint-CropAndStitch` | `InpaintCropImproved` / `InpaintStitchImproved` (canvas inpaint pipeline) | | `ComfyUI-BRIA_AI-RMBG` | `BRIA_RMBG_ModelLoader_Zho` / `BRIA_RMBG_Zho` (Remove BG post step) | | `ComfyUI-WD14-Tagger` | `WD14Tagger\|pysssss` (legacy auto-tag path; harmless if unused) | +| `ComfyUI_UltimateSDUpscale` | `UltimateSDUpscale` (the Ultimate SD Upscale pass) | +| `comfyui_controlnet_aux` | `AIO_Preprocessor` + preprocessors (the ControlNet pass) | **QoL / general-purpose** (carried over from the previous image, no specific graph dependency — installed so user workflows assembled in ComfyUI Manager don't immediately hit "missing nodes"): @@ -30,7 +32,6 @@ ComfyUI Docker image for RunPod, built around the **imagelab_v3_extension** cust | `rgthree-comfy` | Reroute / fast groups / nicer UI | | `ComfyUI_essentials` | cubiq utility nodes a lot of community workflows assume | | `ComfyUI_IPAdapter_plus` | IP-Adapter | -| `comfyui_controlnet_aux` | ControlNet preprocessors | | `ComfyUI-Impact-Pack` | ImpactPack — detectors, samplers, segmentation | | `ComfyUI-VideoHelperSuite` | Video load/save helpers | | `was-node-suite-comfyui` | WAS — broad utility node set | @@ -41,6 +42,8 @@ ComfyUI Docker image for RunPod, built around the **imagelab_v3_extension** cust The BRIA RMBG-1.4 model is downloaded at first boot into the node's `RMBG-1.4` folder (HF; works without auth, but pass `HF_TOKEN` if you've been rate-limited). +At first boot the image also prefetches from HuggingFace (existence-checked, so once per volume): TAESD-XL + SDXL VAE, the **xinsir ControlNet-Union-SDXL (Promax)** → `models/controlnet/xinsir-controlnet-union-sdxl-promax.safetensors` (drives the ControlNet pass, incl. Tile-based hi-res upscaling), and **RealESRGAN_x4** → `models/upscale_models/` (a default for the Ultimate SD Upscale pass). Each is a `log_warn`-on-failure best effort — a failed pull doesn't block boot. + ## Environment variables | Var | Default | Effect | diff --git a/startup.sh b/startup.sh index f7ad3a3..c06963b 100755 --- a/startup.sh +++ b/startup.sh @@ -30,6 +30,8 @@ log_step() { echo -e "${BLUE}[STEP]${NC} $1"; } # * ComfyUI-Inpaint-CropAndStitch → InpaintCropImproved / InpaintStitchImproved # * ComfyUI-BRIA_AI-RMBG → BRIA_RMBG_ModelLoader_Zho + BRIA_RMBG_Zho # * ComfyUI-WD14-Tagger → kept available (old AutoTag path; harmless if unused) +# * ComfyUI_UltimateSDUpscale → UltimateSDUpscale node (the Ultimate SD Upscale pass) +# * comfyui_controlnet_aux → AIO_Preprocessor (the ControlNet pass; in the list below) # * ComfyUI-Manager → in-UI node manager (very useful on a fresh pod) # * rgthree-comfy / custom-scripts → QoL UI nodes the user is likely to want # ---------------------------------------------------------------------------- @@ -39,6 +41,7 @@ CUSTOM_NODES=( "https://github.com/lquesada/ComfyUI-Inpaint-CropAndStitch.git" "https://github.com/ZHO-ZHO-ZHO/ComfyUI-BRIA_AI-RMBG.git" "https://github.com/pythongosssss/ComfyUI-WD14-Tagger.git" + "https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git" # — QoL / general-purpose carried over from the old image — "https://github.com/ltdrdata/ComfyUI-Manager.git" "https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git" @@ -180,6 +183,57 @@ print("SDXL VAE ready") PY } +# ---------------------------------------------------------------------------- +# Feature models from HuggingFace (the CivitAI auto-download path can't reach +# these). The xinsir ControlNet-Union (Promax) drives the web app's ControlNet +# pass — including the Tile type for hi-res-fix-style upscaling — and a default +# ESRGAN model lets the Ultimate SD Upscale pass run out of the box. Both are +# existence-checked, so they download once onto the models volume. +# ---------------------------------------------------------------------------- +download_feature_models() { + local cn_dir="$COMFYUI_DIR/models/controlnet" + local up_dir="$COMFYUI_DIR/models/upscale_models" + mkdir -p "$cn_dir" "$up_dir" + + local cn_target="$cn_dir/xinsir-controlnet-union-sdxl-promax.safetensors" + if [ -f "$cn_target" ]; then + log_info "ControlNet-Union (Promax) already present" + else + log_step "Downloading xinsir ControlNet-Union-SDXL (Promax)" + python3 - <