Archived
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
6639fae0e9
commit
7ca831bfb7
2 files changed
+61
-2
No files matched your search
@@ -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 |
|
||||
|
||||
+57
-1
@@ -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 - <<PY || log_warn "ControlNet-Union download failed"
|
||||
import os
|
||||
from huggingface_hub import hf_hub_download
|
||||
p = hf_hub_download(
|
||||
repo_id="xinsir/controlnet-union-sdxl-1.0",
|
||||
filename="diffusion_pytorch_model_promax.safetensors",
|
||||
local_dir="$cn_dir",
|
||||
token=os.environ.get("HF_TOKEN") or None,
|
||||
)
|
||||
# Rename to a self-describing filename — the web app keys ControlNet-Union
|
||||
# handling off "union"/"promax" appearing in the file name.
|
||||
os.replace(p, "$cn_target")
|
||||
print("ControlNet-Union Promax ready")
|
||||
PY
|
||||
fi
|
||||
|
||||
if [ -f "$up_dir/RealESRGAN_x4.pth" ]; then
|
||||
log_info "Default upscale model already present"
|
||||
else
|
||||
log_step "Downloading RealESRGAN_x4 upscale model"
|
||||
python3 - <<PY || log_warn "Upscale model download failed"
|
||||
import os
|
||||
from huggingface_hub import hf_hub_download
|
||||
hf_hub_download(
|
||||
repo_id="ai-forever/Real-ESRGAN",
|
||||
filename="RealESRGAN_x4.pth",
|
||||
local_dir="$up_dir",
|
||||
token=os.environ.get("HF_TOKEN") or None,
|
||||
)
|
||||
print("RealESRGAN_x4 ready")
|
||||
PY
|
||||
fi
|
||||
}
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# SageAttention (background) — ~3x sampler speedup on supported GPUs.
|
||||
# ----------------------------------------------------------------------------
|
||||
@@ -262,6 +316,8 @@ download_bria_model &
|
||||
BRIA_PID=$!
|
||||
download_hf_models &
|
||||
HF_PID=$!
|
||||
wait $BRIA_PID $HF_PID || true
|
||||
download_feature_models &
|
||||
FEAT_PID=$!
|
||||
wait $BRIA_PID $HF_PID $FEAT_PID || true
|
||||
|
||||
start_comfyui
|
||||
Reference in new issue
Block a user