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:
donnyandClaude Opus 5.5 committed 2026-10-15 13:02:00 -07:00
1 parent 6639fae0e9
commit 7ca831bfb7
2 files changed
+61 -2

No files matched your search

+57 -1
View File
@@ -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