Extensions/BSAI-H3-upscale-4K
ComfyUI Extension

BSAI-H3-upscale-4K

BSAI H3 upscale 4K - dedicated AI video super-resolution / 4K upscaling plugin for ComfyUI (MiniMax H3, Real-ESRGAN, Tile, FP16)

By xm6018924·Created 3 months ago·Updated 3 days ago· 11
xm6018924/BSAI-H3-upscale-4K
Nodes—
On cloudLocal install
Stars11
Updated3 days ago
Readme

BSAI-H3-upscale-4K

English overview — full details in Chinese sections below. / 英文概览,详细中文说明见下文。

AI 4K Upscale plugin for MiniMax H3 video/images (ComfyUI pixel-domain + latent-space dual channel, very fast).

One-click upscale of H3 720P videos / low-res images to 4K, with Real-ESRGAN / FlashVSR / SeedVR2 / NVIDIA RTX / DLSS 5 / VOSR 2.0 / Topaz engines, optical-flow temporal enhancement, face restore, detail enhancement and batch frame processing.

Nodes

| Node | Function | |---|---| | BSAI_H3_Upscale4K | Main upscale node: Auto-Routing (5 preference presets: Quality / Speed / Portrait / Anime / UHD) with automatic face & resolution detection; pixel-domain engines + optical-flow temporal detail + face restore | | BSAI_H3_Upscale4K_Latent | Latent-space upsampling (H3 Latent 3D Upscaler) during generation stage | | BSAI_H3_FaceRestore | Face restore: GFPGAN / CodeFormer with YOLOv8-Face detection, small-face adaptive enhancement, temporal stabilization | | BSAI_H3_DLSS5 | DLSS 5 neural-render upscale (NVIDIA, fastest 4K path on RTX) | | BSAI Topaz Engine Face Restore | Topaz commercial engine face restore | | BSAI_RelayVSR_BatchUpscale | RelayVSR batch sub-node: scan a folder of N videos, run each through VHS_LoadVideo → BSAI_H3_Upscale4K[RelayVSR] → VHS_VideoCombine, write clips to a custom output folder; optional ffmpeg merge (lossless stream copy / unified re-encode / off) |

RelayVSR Batch sub-node / RelayVSR 批量子节点

English

  • Purpose: one node replaces the single-file chain (VHS_LoadVideo → BSAI_H3_Upscale4K[RelayVSR] → VHS_VideoCombine) for folder batches; per-file failure does not abort the whole batch.
  • Workflow: workflows/BSAI-RelayVSR批量超分-示例.json (single node; fill input/output folders).
  • Key params: input_folder / output_folder (absolute; relative paths resolve under input/ / output/; copied-in quotes and bare drive letters like C: are normalized automatically), scale (2=1080p, 4=4K), relay_weights (Auto by scale), relay_detail, detail_amount/detail_radius/softness/temporal_strength, face_restore, tile_size (0=whole-frame fast path), batch_frames, use_compile, crf (h264, default 19), skip_existing (resume), keep_audio.
  • merge_mode (merge stage):
    • 无损流合并 (-c copy) — lossless stream copy, no re-encode; requires identical encode params across clips;
    • 统一重编码 (Re-encode) — libx264/yuv420p/crf19 + AAC re-encode, tolerates mixed frame-rate/source params (not lossless);
    • Off — save clips individually, no merge.
  • Output naming: <原名>_RelayVSR_x<scale>.mp4; merged file: merged_RelayVSR_x<scale>.mp4.

中文

  • 用途:一个节点替代单文件链(VHS_LoadVideo → BSAI_H3_Upscale4K[RelayVSR] → VHS_VideoCombine),对文件夹内 N 个视频逐个批量超分;单片失败不中断整批。
  • 示例工作流:workflows/BSAI-RelayVSR批量超分-示例.json(单节点,填输入/输出文件夹即可)。
  • 主要参数:input_folder / output_folder(绝对路径;相对路径按 input/ / output/ 解析;复制带入的引号、裸盘符 C: 自动归一化),scale(2=1080p 档,4=4K 档),relay_weights(Auto 按倍率选档),relay_detail、detail_amount/detail_radius/softness/temporal_strength,face_restore,tile_size(0=整图快路径),batch_frames,use_compile,crf(h264,默认 19),skip_existing(断点续跑),keep_audio。
  • merge_mode(合并档):
    • 无损流合并 (-c copy):不重编码直拼,要求各片编码参数一致;
    • 统一重编码 (Re-encode):libx264/yuv420p/crf19 + AAC 重编码,兼容混帧率/混参数素材(非无损);
    • Off:逐片保存,不合并。
  • 成片命名:<原名>_RelayVSR_x<scale>.mp4;合并文件:merged_RelayVSR_x<scale>.mp4。

Engines

  • Auto-Routing: one-click engine selection by content/input (Quality→SeedVR2 fp8 / Speed / Portrait / Anime / UHD presets + face/resolution auto-detect), inspired by HitPaw VikPea's model selector
  • Pixel-domain: Real-ESRGAN family (x4plus / anime / general) + optical-flow temporal enhancement + batch frames
  • Diffusion video: FlashVSR-v1.1 / SeedVR2 7B (fp8 numz path + INT8 ComfyUI-native path dual engines)
  • RelayVSR: one-step distilled Wan VSR (Wan keyframe trunk + Flash per-frame decoder, ComfyUI-native comfy.ldm.wan.model_vsr, no external node pack)
  • ReCaVSR 2.0: streaming Wan2.2 VSR (rolling KV history, INT8 or bf16 transformer + flash decoder, optional KV offload)
  • KandinskySR 2.0: auto image/video —— 1 frame goes through ImageSR 2.0 (1 step, FLUX VAE), multi-frame goes through Kandinsky 6.0 Video SR 2.0 (2-step distilled π-Flow, KVAE + x2/x4 latent upscaler, native 2/2.25/4x, windowed + cross-faded temporal VSR); runtime is bundled in kandinsky_sr_vendor/, no external node pack needed
  • Steppe: generative latent upscaler (Wan 2.1 VAE latent 2x generative detail + optional 2x frame interpolation, 1-step distilled, ~424 MB); pixel-in/pixel-out through the bundled Wan 2.1 VAE. Runtime bundled in steppe/ (upstream ComfyUI-Steppe, MIT), no external node pack needed
  • Hardware: NVIDIA RTX Video Super Res / DLSS 5 neural rendering
  • Generative: VOSR 2.0 (CVPR 2026, blur→clear, best for poster text restoration) + engine combos (VOSR+DLSS5 perfect, VOSR+RTX for video)
  • Face restore: GFPGAN / CodeFormer (YOLOv8-Face detection)
  • Latent: H3 Latent 3D Upscaler
  • Topaz: commercial engine integration
  • Inventory (as of 2026-12-01): 19 fixed tiers = 13 engine tiers + 3 Topaz tiers + 3 built-in Real-ESRGAN weights; underneath there are 10 distinct engines + 2 dual-engine chains + 1 auto-router, plus unlimited classic-SR weights. Full breakdown: see 「引擎总览 / Engine Inventory」 below

19 fixed tiers, 10 underlying engines — the main node's model_name exposes 13 engine tiers (2 of them dual-engine chains), Topaz exposes 3 generative tiers, and classic SR exposes 3 built-in weights plus anything you drop into upscale_models/. On top of that, 5 nodes ship latent upscale (6 methods), face restore (4 modes), Topaz face restore (6 models), a standalone DLSS 5 entry point and RelayVSR folder batch processing.

新一代三大视频超分引擎 / RelayVSR · ReCaVSR 2.0 · KandinskySR 2.0

English

1. Model directories (all relative to ComfyUI/models/; ComfyUI scans these recursively)

RelayVSR — no external node pack needed (native comfy.ldm.wan.model_vsr path)

| Path | Size | Role | |---|---|---| | diffusion_models/RelayVSR/relayvsr_x2_lightx2v_int8_convrot.safetensors | ~4.9 GB | x2 Wan trunk (relayvsr-wan-x2-v1) | | diffusion_models/RelayVSR/relayvsr_x4_int8_convrot.safetensors | ~4.9 GB | x4 Wan trunk (refvsr-wan-v1) | | vae/"relayvsr VAE"/relayvsr_flash_vae_x2_fp32.safetensors | ~122 MB | x2 Flash per-frame decoder (relayvsr-flash-x2-v1) | | vae/"relayvsr VAE"/relayvsr_flash_vae_x4_fp32.safetensors | ~122 MB | x4 Flash decoder (refvsr-flash-v1) |

Only one scale is needed at a time (relay_weights = Auto (by scale)), but keeping both x2 and x4 lets the node pick per run.

ReCaVSR 2.0 — vendored adapter, no external node pack needed

| Path | Size | Role | |---|---|---| | recavsr/transformer_int8_convrot.safetensors | ~6.0 GB | INT8 streaming Wan2.2 transformer (preferred) | | recavsr/transformer.safetensors | ~10.1 GB | bf16 transformer (higher precision, more VRAM) | | recavsr/flashdecoder.safetensors | ~218 MB | Flash decoder (all frames back to pixels) | | recavsr/prompt.safetensors | ~4 MB | fixed text conditioning consumed by the pipeline |

model_file is empty by default = auto (INT8 ConvRot first, bf16 fallback).

KandinskySR 2.0 — runs on the runtime bundled inside this plugin (kandinsky_sr_vendor/, no pip deps, no external node pack required)

| Path | Size | Role | |---|---|---| | diffusion_models/kandinsky-sr/kandinsky_image_sr_2.0_int8_convrot.safetensors | 4.78 GiB | ImageSR 2.0 (1-step, image route) | | diffusion_models/kandinsky-sr/kandinsky6_vsr_2.0_distilled2steps_int8_convrot.safetensors | 1.82 GiB | VideoSR 2.0 (2-step distilled, video route) | | vae/kandinsky-sr/kandinsky_kvae_3d_2.0_t4s16_bf16.safetensors | 3.24 GiB | 3D KVAE for the video route | | latent_upscale_models/kandinsky-sr/kandinsky6_sr_latent_upscaler_x2_bf16.safetensors | 1.42 GiB | x2 latent upscaler | | latent_upscale_models/kandinsky-sr/kandinsky6_sr_latent_upscaler_x4_bf16.safetensors | 2.69 GiB | x4 latent upscaler (required even for 2x — the pack validates both paths) | | vae/ae.safetensors | ~320 MB | FLUX.1 VAE used by the image route |

Weights repo: https://huggingface.co/PedroMarinhoDev/Kandinsky-SR-ComfyUI (mirror https://hf-mirror.com). INT8 files can be swapped for the same-family BF16 ones by editing the _KAND_*_FILE constants.

2. Comparison

| | RelayVSR | ReCaVSR 2.0 | KandinskySR 2.0 | |---|---|---|---| | Mechanism | 1-step distilled Wan: only every 15th frame + last frame go through the Wan trunk, all other frames are rebuilt by the Flash decoder | Streaming Wan2.2: rolling KV history, encode → sample → decode tile by tile | ImageSR 1-step (single frame) / VideoSR 2-step distilled π-Flow + KVAE + x2/x4 latent upscaler | | Native scale | 2x / 4x | 4x trained (2x / 1.5 documented) | Video 2x / 2.25x / 4x, image 2x / 4x | | Relative speed | Fastest (only keyframes are sampled) | Slowest (every tile runs the full pipeline) | Medium-fast; 2 steps only, video runs in windows | | Peak VRAM | ~5.1 GB (trunk) + 0.12 GB (decoder) | ~6.2 GB INT8 / ~10.4 GB bf16, plus rolling KV (lower with recav_kv_offload) | ~13 GB video / ~9 GB image | | Temporal stability | Good; non-keyframes are synthesized, so fast motion / hard cuts can smear slightly | Strongest; the whole clip shares rolling context | Good; long clips run in 361-frame windows cross-faded across 9 frames | | Best for | Batch throughput, quick previews, static or slow-motion footage | Final quality on fast motion, sports, dance, long takes | Mixed image + video jobs, 1080p → 4K via 2.25x, generative detail recovery | | Main caveats | Keyframe interpolation can soften fast action; only 2x/4x (other ratios are bicubic-finished); video only | Slowest and hungriest; fixed prompt conditioning; needs ≥16 GB for a comfortable run | Ships with its own runtime inside this plugin (kandinsky_sr_vendor/, MIT) so there is nothing extra to install; both x2/x4 upscalers are still required; window joins briefly soften detail; a 1-frame video is routed as an image (force with kand_mode = 视频) |

Deselection rule of thumb: throughput → RelayVSR; motion fidelity → ReCaVSR 2.0; stills + 4K generative detail → KandinskySR 2.0.

中文

1. 模型目录(全部相对 ComfyUI/models/,ComfyUI 递归扫描子目录)

RelayVSR — 不需要外部节点包,走 ComfyUI 原生 comfy.ldm.wan.model_vsr

| 路径 | 体积 | 作用 | |---|---|---| | diffusion_models/RelayVSR/relayvsr_x2_lightx2v_int8_convrot.safetensors | ~4.9 GB | x2 Wan 主干(relayvsr-wan-x2-v1) | | diffusion_models/RelayVSR/relayvsr_x4_int8_convrot.safetensors | ~4.9 GB | x4 Wan 主干(refvsr-wan-v1) | | vae/relayvsr VAE/relayvsr_flash_vae_x2_fp32.safetensors | ~122 MB | x2 Flash 逐帧解码器(relayvsr-flash-x2-v1) | | vae/relayvsr VAE/relayvsr_flash_vae_x4_fp32.safetensors | ~122 MB | x4 Flash 解码器(refvsr-flash-v1) |

一次只用一档(relay_weights = Auto (by scale) 自动选),但两档都留着才能按倍率自由切换。

ReCaVSR 2.0 — 插件内置 vendor 适配器,同样不需要外部节点包

| 路径 | 体积 | 作用 | |---|---|---| | recavsr/transformer_int8_convrot.safetensors | ~6.0 GB | INT8 流式 Wan2.2 主干(默认首选) | | recavsr/transformer.safetensors | ~10.1 GB | bf16 主干(精度更高、显存更大) | | recavsr/flashdecoder.safetensors | ~218 MB | Flash 解码器(把全部帧还原成像素) | | recavsr/prompt.safetensors | ~4 MB | 管线固定使用的文本条件 |

model_file 留空 = auto(先 INT8 ConvRot,没有则回退 bf16)。

KandinskySR 2.0 — 运行时已内置在本插件里(kandinsky_sr_vendor/,无 pip 依赖,不需要额外装 ComfyUI-KandinskySR 节点包)

| 路径 | 体积 | 作用 | |---|---|---| | diffusion_models/kandinsky-sr/kandinsky_image_sr_2.0_int8_convrot.safetensors | 4.78 GiB | ImageSR 2.0(1 步,图像路线) | | diffusion_models/kandinsky-sr/kandinsky6_vsr_2.0_distilled2steps_int8_convrot.safetensors | 1.82 GiB | VideoSR 2.0(2 步蒸馏,视频路线) | | vae/kandinsky-sr/kandinsky_kvae_3d_2.0_t4s16_bf16.safetensors | 3.24 GiB | 视频路线用的 3D KVAE | | latent_upscale_models/kandinsky-sr/kandinsky6_sr_latent_upscaler_x2_bf16.safetensors | 1.42 GiB | x2 潜空间放大器 | | latent_upscale_models/kandinsky-sr/kandinsky6_sr_latent_upscaler_x4_bf16.safetensors | 2.69 GiB | x4 潜空间放大器(只用 2x 也必须放,包内加载器强制校验两条路径) | | vae/ae.safetensors | ~320 MB | 图像路线用的 FLUX.1 VAE |

权重仓库:https://huggingface.co/PedroMarinhoDev/Kandinsky-SR-ComfyUI(国内可用 https://hf-mirror.com)。INT8 可换同系列 BF16,改 _KAND_*_FILE 常量即可。

2. 优缺点对比

| | RelayVSR | ReCaVSR 2.0 | KandinskySR 2.0 | |---|---|---|---| | 机制 | 1 步蒸馏 Wan:只有每 15 帧的关键帧 + 末帧过 Wan 主干,其余帧全部由 Flash 解码器还原 | 流式 Wan2.2:滚动 KV 历史,逐块编码→采样→解码 | 图像 1 步 / 视频 2 步蒸馏 π-Flow + KVAE + x2/x4 潜空间放大器 | | 原生倍率 | 2x / 4x | 按 4x 训练(2x / 1.5 亦有文档) | 视频 2x / 2.25x / 4x,图像 2x / 4x | | 相对速度 | 最快(只采样关键帧) | 最慢(每块都跑完整管线) | 居中偏快;只要 2 步,视频按窗跑 | | 显存峰值 | ~5.1 GB 主干 + 0.12 GB 解码器 | ~6.2 GB INT8 / ~10.4 GB bf16,另加滚动 KV(开 recav_kv_offload 可降) | 视频 ~13 GB / 图像 ~9 GB | | 时序稳定性 | 好;非关键帧靠合成,快速运动/硬切处可能轻微拖影 | 最强;全片段共享滚动上下文 | 好;长片按 361 帧分窗,相邻窗 9 帧交叉淡化 | | 最适合 | 批量出片、快速预览、静态或慢动作素材 | 快速运动、体育/舞蹈、长镜头成片 | 图像+视频混合任务、1080P 走 2.25x 直上 4K、需要生成式细节重建 | | 主要缺点 | 关键帧插值会让快动作变软;只有 2x/4x(其它倍率靠 bicubic 补);只管视频 | 最慢、显存最吃;文本条件固定不可控;建议 ≥16 GB 空闲显存 | 运行时随插件自带(kandinsky_sr_vendor/,MIT),不用再装外部包;但 x2/x4 放大器两个文件都要在;分窗交界处细节短暂变软;单帧视频会被判成图像(可用 kand_mode = 视频 强制) |

选型口诀:要吞吐 → RelayVSR;要运动保真 → ReCaVSR 2.0;要静帧/4K 生成式细节 → KandinskySR 2.0。

引擎总览 / Engine Inventory

盘点日期 2026-12-01,逐条对照 ENGINE_OPTIONS / TOPAZ_OPTIONS / list_available_models() 与实际派发分支核实。

一句话结论:主节点共 19 个固定档位 = 13 个引擎档 + 3 个 Topaz 档 + 3 个内置经典 SR 权重;13 个引擎档去重后是 10 种独立引擎 + 2 种双引擎串联,另有 1 个自动路由(按内容选档,不单独算引擎)和 1 个旧版兼容别名。经典 SR 档是开放的,upscale_models/ 放什么就能选什么。

1. 主节点:13 个可选引擎档(model_name)

| 档位 | 底层引擎 | 输入 | 速度档 | 显存峰值 | 最适合 | 关键取舍 | |---|---|---|---|---|---|---| | FlashVSR-v1.1 | FlashVSR 稀疏注意力扩散 | 视频(多帧) | 慢 | ~16 GB(DiT + TCDecoder) | 低清实拍通用放大,生成细节足 | 倍率取整只能用 2x/3x/4x;有运动时需 anti_ghost 压鬼影 | | RelayVSR | 1 步蒸馏 Wan + Flash 解码器 | 视频 | 最快 | ~5.2 GB | 批量出片、快速预览、慢动作/静态素材 | 只吃 2x/4x(其它倍率 bicubic 补);快动作会变软 | | ReCaVSR 2.0 | 流式 Wan2.2(滚动 KV) | 视频 | 最慢(8 帧 144×256→576×1024:fast 40.5s / exact 290.7s) | ~6.2 GB INT8 / ~10.4 GB bf16(另加 KV,可 offload) | 快速运动、体育/舞蹈、长镜头成片 | 文本条件固定;建议 ≥16 GB 空闲显存 | | Steppe 2x | Wan 2.1 潜空间 1 步蒸馏生成式 SR | 图像 + 视频(可 2x 补帧) | 快(256×256 ×2 单帧 ~1s @模型已加载;首帧含加载约 20s) | ~3–4 GB(模型 424 MB + Wan VAE) | 干净素材直出 4K、静帧细节、需要顺带补帧 | 原生 2x(4x 串联两次);补帧后帧数 B→2B-1;走 models/vae/wan_2.1_vae_fp32 | | KandinskySR 2.0 | ImageSR 1 步 / VideoSR 2 步蒸馏 π-Flow | 图像 + 视频(自动分流) | 中快(图像 160×96 ×2 约 24–30s;视频 9 帧 128×128→256×256 136.8s) | ~13 GB 视频 / ~9 GB 图像 | 静帧 + 4K 生成式细节,1080P 走 2.25x 直上 4K | 单帧视频会被判成图像(kand_mode = 视频 可强制);x2/x4 放大器两个文件都要在 | | SeedVR2 7B | SeedVR2 官方 fp8 链 | 图像 + 视频 | 中(507×524→1048×1014 实测 84s) | 官方 fp8 量级 | 质量优先默认首选 | 依赖 ComfyUI 原生 SeedVR2 链与 VAE 路径 | | SeedVR2 7B INT8 | ComfyUI 原生 INT8 量化链 | 图像 + 视频 | 中偏慢(同尺寸 8 步 130s) | 低于 fp8 | 显存紧张、要压峰值 | w4a4 量化在眼唇高频区有损,节点会自动提到 16 步 / cfg 1.5 补偿 | | NVIDIA RTX Video Super Res | RTX VSR(GPU 固定功能) | 图像 + 视频 | 极快 | 很低 | 干净素材大批量、实时预览 | 只重建不生成细节;需 RTX 卡 | | NVIDIA RTX VSR - Denoise/Deblur (VFX) | nvvfx DENOISE_* / DEBLUR_* | 视频 | 极快 | 很低 | 噪点、运动模糊素材的前置清理 | 同分辨率清理,scale>1 时自动接 RTX ULTRA 放大 | | DLSS 5 | DLSS SR + Neural Rendering(NGX 18) | 图像 + 视频 | 极快 | 很低 | 需要时序稳定的视频、RTX 原生观感 | 需 video2dlssnr.exe + 3 个 DLL;输出上限 7680,超限自动分块 | | VOSR 2.0 | VOSR DiT(CVPR 2026) | 图像 + 逐帧视频 | 慢 | 高(大图 OOM 风险,短边 >1024 自动 latent tile) | 模糊救图、海报文字复原 | 非方形帧会被补成正方形;大图走 tile 路径 | | VOSR 2.0 + DLSS 5 | 两级串联 | 图像 | 慢 + 极快 | 高 | 一次性追求最佳静帧 | 两步串联,耗时叠加 | | VOSR 2.0 + RTX | 两级串联(视频推荐) | 视频 | 慢 + 极快 | 高 | 视频成片、兼顾细节与稳定 | 同上,第二级走 RTX 更省时 |

1 个自动路由:Auto Route (content-based) 不算引擎——用 YOLO 抽样检测人脸 + 分辨率探测,按 auto_prefer 五档(Quality / Speed / Portrait / Anime / UHD)从上面 12 个里挑,决策写进 info 输出。 1 个兼容别名:KandinskySR 2.0 (2-step video SR) 指向同一个 kandinsky 引擎,只为旧工作流能直接打开。

2. Topaz 档:3 个

| 档位 | 输入 | 显存 | 最适合 | 注意 | |---|---|---|---|---| | Topaz Starlight 2.6 | 视频 | ≤ max_gpu_mem(默认 22 GB) | 商业级成片观感 | 需 Topaz Engine 运行时与授权 | | Topaz Astra | 视频(≥9 帧) | 同上 | 更激进的细节重建 | Astra HQ / Sharp / Fast 是该族的子档,只在 Face Restore 节点暴露 | | Topaz Wonder 3.5 | 图像(逐帧) | 同上 | 老照片、单帧补细节 | 视频逐帧跑,最慢 |

3. 经典 SR 档:内置 3 个 + 目录任意权重

| 权重 | 结构 | 倍率 | 定位 | |---|---|---|---| | RealESRGAN_x4plus.pth | RRDB | 4x | 实拍/真人首选 | | RealESRGAN_x4plus_anime_6B.pth | RRDB(6 块) | 4x | 动漫/风格化,快 | | realesr-general-x4v3.pth | SRVGG compact | 4x | 通用默认,体积最小 |

不止这 3 个:models/upscale_models/ 里的 .pth/.safetensors/.pt 全部自动列出,RRDB / SRVGG 自动识别,识别不了走 spandrel 兜底(DAT / OmniSR / RealPLKSR / SwinIR / HAT 等)。本机当前该目录有 19 个可用权重(含 1x/2x/3x/4x 各档)。速度最快、几乎不占显存,但不生成细节,只做重建。

4. 另外 5 个节点附带的能力(不属于上面 19 档)

| 节点 | 可选档位 | |---|---| | BSAI H3 upscale 4K Latent | 6 种 latent 放大方式:learned-3d(3D 卷积潜空间 SR 网络)+ nearest-exact / bilinear / area / bicubic / bislerp | | BSAI H3 Face Restore | 4 档:Off / GFPGANv1.4 / CodeFormer / Small-Face (CodeFormer),检测后端 Auto / NPU Offload / GPU1 | | BSAI Topaz Engine Face Restore | 6 个 Topaz 模型:Starlight 2.6 / Astra / Astra HQ / Astra Sharp / Astra Fast / Wonder 3.5 | | BSAI H3 DLSS 5 Upscale | 独立 DLSS 节点,3 style(Cinematic / Default / Natural)× 4 preset | | RelayVSR 批量超分 | 文件夹批处理,识别 8 种视频扩展名(mp4/mov/mkv/webm/avi/flv/ts/m4v) |

5. 选型口诀(按目标)

  • 只要快、素材干净 → RTX VSR / 经典 Real-ESRGAN
  • 批量视频吞吐 → RelayVSR
  • 快速运动、长镜头成片 → ReCaVSR 2.0(recav_kernels = fast,别用 exact)
  • 静帧 + 4K 生成式细节 → KandinskySR 2.0
  • 一句"质量优先"不想调参 → SeedVR2 7B(fp8 优先,INT8 自动提步数)
  • 海报文字 / 糊图救回 → VOSR 2.0(+ DLSS 5)
  • 商业成片观感且有授权 → Topaz Starlight 2.6
  • 干净素材直出 4K / 顺带补帧 → Steppe 2x(steppe_temporal = True 出 2 倍帧率)

6. Steppe(内置生成式潜空间超分)/ Steppe (bundled generative latent SR)

中文

定位:2x 生成式细节 + 可选 2x 智能补帧,全程在 Wan 2.1 VAE 潜空间完成 —— 不需要提示词、不做二次采样;在插件里是"像素进、像素出",内部自动 VAE 编码 → Steppe 放大 → 解码。

v2.13.0 升级内容

  • 主节点新增档位 Steppe 2x (Wan2.1 latent generative SR),参数 steppe_model / steppe_temporal / steppe_hff / steppe_guidance / steppe_steps / steppe_seed(追加在输入末尾,旧工作流打开不受影响)。
  • 运行时内置到 steppe/(上游 TensorForger/ComfyUI-Steppe,MIT,附 LICENSE-upstream / NOTICE-upstream):不再需要独立 ComfyUI-Steppe 节点包,原 G:\Steppe 包已移除,插件自包含。
  • 配套潜空间节点(分类 BSAI/H3/Steppe):Load Steppe Upscaler / Steppe Upscale Latent (+Advanced) / Steppe Measure HFF / Load Steppe Translator / Steppe Translate Latent (+Advanced)。
  • 权重放 models/latent_upscale_models/:steppe_wan_2_1_200M_1step.safetensors(默认 424 MB)、steppe_wan_2_1_20M_1step.safetensors(轻量 39 MB)、steppe_wan_2_1_200M_base.safetensors(多步/CFG 研究用)。
  • 与 H3 latent 节点隔离:_scan_latent_models() 显式排除 steppe_*,两个功能的模型下拉互不污染。

使用注意

  1. 重启 ComfyUI 后生效:新档位、7 个节点、steppe_model 下拉都是启动时注册的,热改文件不会出现在已运行的界面里。
  2. 依赖 Wan 2.1 VAE:插件按 vae/wan_2.1_vae_fp32.safetensors → wan_2.1_vae.safetensors → wan_2.1_vae_bf16.safetensors → Wan2.1_VAE.pth 顺序自动查找;都没有会直接报可读错误,不会静默降级。
  3. 首次调用慢是正常的:要加载 424 MB 模型 + 507 MB VAE,单帧 256×256 首次约 20s,之后同尺寸约 1s。
  4. detail_amount 建议设 0:Steppe 自己生成细节,再叠 USM 容易过冲出白边;softness 同理保持 0。
  5. 倍率:原生 2x;4x 自动串两次 2x(512→1024→2048 路线);1.5 / 2.67 等非 2 的幂最后做一次精确缩放(约等于 2x 再降采样)。
  6. 补帧:steppe_temporal = True 时帧数 B → 2B-1(81 帧 → 161 帧),下游 fps 要同步改成 2 倍才不会变慢动作;单帧输入、或模型不支持时序时自动忽略。
  7. 显存:模型部分固定约 3–4 GB(424 MB 放大器 + Wan VAE),潜空间张量随分辨率增长;23.9 GB 的 5090 Laptop 在 17.7 GB 空闲下跑 121 帧 96×96 正常。
  8. 长片自动分段:编码按 81 帧、解码按 21 潜帧分段,段间 1 帧重叠拼接,121 帧实测无掉帧、无接缝崩坏。
  9. 档位边界:主节点下拉只列 Wan 2.1 档;FLUX.2 档(steppe_flux_2_*)和 H3→FLUX.2 译者只走潜空间节点(第一次选中会从 TensorForger/Steppe-* 自动下载,国内可设 HF_ENDPOINT=https://hf-mirror.com)。
  10. 自检脚本:tools/self_test_steppe.py(导入 / 权重 / 节点注册)、tools/self_test_steppe_gpu.py(GPU 推理、补帧、长片分段)、tools/self_test_steppe_node.py(主节点分发 + latent 列表隔离)。

实测(RTX 5090 Laptop 23.9 GB,torch 2.11 + cu130)

| 用例 | 输出 | 耗时 | |---|---|---| | 256×256 单帧 ×2 | 512×512 | 约 1s(模型已加载;首次含加载约 20s) | | 256×256 单帧 ×4(两遍 2x) | 1024×1024 | 约 0.5–0.7s | | 5 帧 192×256 ×2 | 5 帧 384×512 | 约 0.6s | | 5 帧 192×256 ×2 + 2x 补帧 | 9 帧 384×512 | 约 1–2.8s | | 121 帧 96×96 ×2(分段) | 121 帧 192×192 | 约 2.3s |

English

What it is: 2x generative detail plus optional 2x frame interpolation, done entirely in Wan 2.1 VAE latent space — no prompt, no second sampling pass. Inside the plugin the node stays pixel-in / pixel-out: VAE encode → Steppe upscale → VAE decode.

What v2.13.0 adds

  • New tier on the main node: Steppe 2x (Wan2.1 latent generative SR), with steppe_model / steppe_temporal / steppe_hff / steppe_guidance / steppe_steps / steppe_seed appended at the end of the input list (existing workflows keep their widget values).
  • Runtime is bundled in steppe/ (upstream TensorForger/ComfyUI-Steppe, MIT, LICENSE-upstream / NOTICE-upstream): no separate ComfyUI-Steppe node pack needed; the old G:\Steppe folder was removed and the plugin is self-contained.
  • Latent nodes (category BSAI/H3/Steppe): Load Steppe Upscaler / Steppe Upscale Latent (+Advanced) / Measure HFF / Load Steppe Translator / Translate Latent (+Advanced).
  • Weights live in models/latent_upscale_models/: steppe_wan_2_1_200M_1step.safetensors (default, 424 MB), steppe_wan_2_1_20M_1step.safetensors (light, 39 MB), steppe_wan_2_1_200M_base.safetensors (multi-step / CFG, research).
  • Kept apart from the H3 latent node: _scan_latent_models() filters out steppe_*, so neither dropdown pollutes the other.

Notes before you run it

  1. Restart ComfyUI first: the tier, the 7 nodes and the steppe_model list are registered at startup.
  2. Wan 2.1 VAE required: the plugin probes vae/wan_2.1_vae_fp32.safetensors → wan_2.1_vae.safetensors → wan_2.1_vae_bf16.safetensors → Wan2.1_VAE.pth; if none exists you get a readable error instead of a silent fallback.
  3. First call is slow: it loads the 424 MB upscaler plus the 507 MB VAE — about 20s for a 256×256 still, then about 1s at the same size.
  4. Set detail_amount to 0: Steppe already generates detail; stacking USM on top overshoots and halos. Keep softness at 0 too.
  5. Scale: native 2x; 4x chains two 2x passes (the 512→1024→2048 route); non power-of-two scales (1.5 / 2.67 …) get one final exact resize after the 2x passes.
  6. Frame interpolation: steppe_temporal = True turns B frames into 2B-1 (81 → 161), so double the fps downstream or the clip plays slow. Ignored for single frames and for spatial-only models.
  7. VRAM: about 3–4 GB for the models themselves (424 MB upscaler + Wan VAE); latent tensors scale with resolution. 121 frames at 96×96 ran fine with 17.7 GB free on a 23.9 GB laptop 5090.
  8. Long clips are chunked automatically: encode in 81-frame chunks, decode in 21-latent chunks, stitched with a one-step overlap; 121 frames came out with the exact frame count and no seam breakage.
  9. Tier boundary: the main node lists Wan 2.1 models only. FLUX.2 tiers (steppe_flux_2_*) and the H3→FLUX.2 translator are available through the latent nodes (first use downloads from TensorForger/Steppe-*; set HF_ENDPOINT=https://hf-mirror.com in China).
  10. Self-tests: tools/self_test_steppe.py (import / weights / registration), tools/self_test_steppe_gpu.py (GPU inference, interpolation, chunking), tools/self_test_steppe_node.py (main-node dispatch + latent-list isolation).

Measured (RTX 5090 Laptop 23.9 GB, torch 2.11 + cu130)

| Case | Output | Time | |---|---|---| | 256×256 still ×2 | 512×512 | ~1s warm (~20s first call incl. load) | | 256×256 still ×4 (two 2x passes) | 1024×1024 | ~0.5–0.7s | | 5 frames 192×256 ×2 | 5 × 384×512 | ~0.6s | | 5 frames ×2 + 2x interpolation | 9 × 384×512 | ~1–2.8s | | 121 frames 96×96 ×2 (chunked) | 121 × 192×192 | ~2.3s |

7. 引擎参数面板(按引擎显隐)/ Engine-aware parameter panel

中文

为什么改:主节点累计 60 个参数,平铺时一半以上对当前引擎无效(选 Steppe 也照样摆着 tile_size / sv2_* / kand_*),既占屏又容易调错。v2.13.1 起按 model_name 只渲染该引擎真正读取的参数,其余自动隐藏,节点高度同步收缩。

常驻参数(任何引擎都在):scale、detail_amount、softness、detail_mode、input_adaptive、face_restore;detail_radius 仅在 detail_amount > 0 时出现;face_restore ≠ Off 时再展开 5 个人脸参数(face_det_backend / face_det_conf / face_blend / face_fidelity / face_temporal)。

各引擎专属参数(互斥,一个引擎一个坑)

| 引擎档位 | 专属参数 | |---|---| | Auto Route (content-based) | auto_prefer | | FlashVSR-v1.1 | flashvsr_anti_ghost | | RelayVSR | relay_weights、relay_detail | | ReCaVSR 2.0 | recav_color_fix、recav_kernels、recav_kv_offload | | Steppe 2x | steppe_model、steppe_temporal、steppe_hff、steppe_guidance、steppe_steps、steppe_seed | | KandinskySR 2.0 | kand_mode、kand_native、kand_steps、kand_tiles_batch、kand_overlap、kand_use_lu、kand_creativity、kand_kernels、kand_stitch、kand_window、kand_fps | | SeedVR2 7B (fp8) | 无专属(sv2_* 只归 INT8 档) | | SeedVR2 7B INT8 | sv2_steps、sv2_cfg、sv2_sampler、sv2_scheduler、sv2_color | | NVIDIA RTX VSR | 无专属 | | RTX VSR - Denoise/Deblur (VFX) | rtx_vfx_op、rtx_vfx_level、rtx_strength | | DLSS 5 | dlss_style、dlss_intensity、dlss_detail、dlss_motion | | VOSR 2.0 | vosr_cfg、vosr_steps | | VOSR 2.0 + DLSS 5 | dlss_* 四项 + vosr_scale、dlss_chain_scale | | VOSR 2.0 + RTX | vosr_scale、rtx_chain_scale | | Topaz 三档 | 无专属 | | 经典 Real-ESRGAN 权重 | tile_size、tile_pad、batch_frames、use_fp16、use_compile、temporal_strength |

dlss_* 是唯一被两个档位共享的组(DLSS 5 单选 与 VOSR + DLSS 5 串联),因为两边读的是同一批参数。

使用注意

  1. 只影响前端显示,不影响出图:隐藏参数仍然按上次的值提交,只是看不见;想改先切到对应引擎。
  2. 不动工作流结构:不删 widget、不改顺序、不改 type,保存的 widgets_values 位置和数量不变;实测"隐藏参数后保存 → 重载"60 个值零丢位(含当时不可见的 tile_size / vosr_steps)。面板不承担历史版本重排,早于 auto_prefer 等参数引入的老工作流仍由原有迁移脚本处理。
  3. 需重启 ComfyUI 再刷新页面:扩展是启动时注册的,热改 web/*.js 不会出现在已打开的页面里;改完要重启服务 + Ctrl+F5。
  4. 切引擎会顺带缩高节点:从 Kandinsky(19 项)切到 SeedVR2(8 项)节点会明显变矮,手动拉过的高度会被一次收拢,再拉即可。
  5. 联动优先级:人脸组(face_restore)和细节组(detail_amount)与引擎独立叠加,任何引擎下都按同一规则展开/收起。
  6. 旧中文档位名同样识别:自动路由 (按内容/输入推荐)、KandinskySR 2.0 (2步视频超分) 等历史标签走同一套映射,老工作流不会因为标签是中文就露出全部参数。
  7. 自检:tools/test_engine_panel.mjs(60 个 widget 全覆盖 + 16 类引擎映射 + 互斥性)、tools/verify_engine_panel.mjs(无头 Chrome 真实前端验证 + 保存→重载零丢位回归)、tools/dump_panel_widgets.py(从 Python INPUT_TYPES 导出 widget 名单供比对)。

English

Why: the main node had grown to 60 inputs, and more than half of them were dead for whatever engine was selected (picking Steppe still left tile_size, sv2_*, kand_* on screen). Since v2.13.1 the panel renders only the inputs the selected model_name actually reads, hides the rest, and shrinks the node to match.

Always visible: scale, detail_amount, softness, detail_mode, input_adaptive, face_restore. detail_radius appears only when detail_amount > 0; the five face inputs (face_det_backend, face_det_conf, face_blend, face_fidelity, face_temporal) appear only when face_restore ≠ Off.

Per-engine exclusivity — each tier owns its own group and nothing else:

| Tier | Own inputs | |---|---| | Auto Route (content-based) | auto_prefer | | FlashVSR-v1.1 | flashvsr_anti_ghost | | RelayVSR | relay_weights, relay_detail | | ReCaVSR 2.0 | recav_color_fix, recav_kernels, recav_kv_offload | | Steppe 2x | steppe_model, steppe_temporal, steppe_hff, steppe_guidance, steppe_steps, steppe_seed | | KandinskySR 2.0 | kand_mode, kand_native, kand_steps, kand_tiles_batch, kand_overlap, kand_use_lu, kand_creativity, kand_kernels, kand_stitch, kand_window, kand_fps | | SeedVR2 7B (fp8) | none (sv2_* belongs to the INT8 tier) | | SeedVR2 7B INT8 | sv2_steps, sv2_cfg, sv2_sampler, sv2_scheduler, sv2_color | | NVIDIA RTX VSR | none | | RTX VSR - Denoise/Deblur (VFX) | rtx_vfx_op, rtx_vfx_level, rtx_strength | | DLSS 5 | dlss_style, dlss_intensity, dlss_detail, dlss_motion | | VOSR 2.0 | vosr_cfg, vosr_steps | | VOSR 2.0 + DLSS 5 | the four dlss_* + vosr_scale, dlss_chain_scale | | VOSR 2.0 + RTX | vosr_scale, rtx_chain_scale | | Topaz (3 tiers) | none | | Classic Real-ESRGAN weights | tile_size, tile_pad, batch_frames, use_fp16, use_compile, temporal_strength |

dlss_* is the only group shared by two tiers (DLSS 5 alone and the VOSR + DLSS 5 chain), because both read the same inputs.

Notes

  1. Display only — rendering is untouched: hidden inputs still submit their last values; switch to that engine to edit them.
  2. No workflow structure change: widgets are not removed, reordered, or retyped, so saved widgets_values keep their positions and counts; a save-then-reload test kept all 60 values intact, including tile_size / vosr_steps while they were invisible. The panel does not do historical re-mapping — workflows older than the auto_prefer era are still handled by the existing migration script.
  3. Restart ComfyUI, then refresh: extensions are registered at startup, so editing web/*.js hot does nothing to an open page — restart the server and hit Ctrl+F5.
  4. Switching engines resizes the node: going from Kandinsky (19 rows) to SeedVR2 (8 rows) visibly shrinks it; a manually stretched height collapses once, just re-stretch.
  5. Independent overlays: the face group (face_restore) and detail group (detail_amount) layer on top of any engine with the same rules.
  6. Legacy Chinese labels map too: historical labels such as 自动路由 (按内容/输入推荐) or KandinskySR 2.0 (2步视频超分) resolve through the same table, so old workflows don't fall back to the full 60-input view.
  7. Self-checks: tools/test_engine_panel.mjs (all 60 widgets covered, 16 engine mappings, exclusivity), tools/verify_engine_panel.mjs (headless-Chrome run against a live frontend plus a save→reload zero-loss check), tools/dump_panel_widgets.py (exports the widget list from Python INPUT_TYPES for comparison).

8. English quick table

| Tier | Underlying engine | Input | Speed | VRAM peak | Best for | |---|---|---|---|---|---| | FlashVSR-v1.1 | FlashVSR (sparse-attention diffusion) | video | slow | ~16 GB | generic low-quality live-action | | RelayVSR | 1-step distilled Wan + Flash decoder | video | fastest | ~5.2 GB | throughput, previews, slow motion | | ReCaVSR 2.0 | streaming Wan2.2, rolling KV | video | slowest | ~6.2 GB INT8 / ~10.4 GB bf16 | fast motion, sports, long takes | | Steppe 2x | Wan 2.1 latent 1-step generative SR | image + video (+2x frame interpolation) | fast | ~3–4 GB | clean footage to 4K, stills, frame-rate boost | | KandinskySR 2.0 | ImageSR 1-step / VideoSR 2-step | image + video (auto) | medium-fast | ~13 GB video / ~9 GB image | stills + 4K generative detail | | SeedVR2 7B | SeedVR2 official fp8 | image + video | medium | fp8 class | default "quality first" | | SeedVR2 7B INT8 | ComfyUI native INT8 | image + video | medium-slow | lower | tight VRAM | | NVIDIA RTX Video Super Res | RTX VSR | image + video | very fast | very low | clean footage, batch, preview | | NVIDIA RTX VSR - Denoise/Deblur (VFX) | nvvfx DENOISE/DEBLUR | video | very fast | very low | noisy / motion-blurred input | | DLSS 5 | DLSS SR + Neural Rendering | image + video | very fast | very low | temporally stable RTX look | | VOSR 2.0 | VOSR DiT | image + per-frame video | slow | high | blur→clear, poster text | | VOSR 2.0 + DLSS 5 | two-stage | image | slow + very fast | high | best single still | | VOSR 2.0 + RTX | two-stage | video | slow + very fast | high | video finals |

Roll-up: 19 fixed tiers = 13 engine tiers + 3 Topaz tiers + 3 built-in Real-ESRGAN weights, i.e. 10 distinct engines + 2 dual-engine chains underneath, plus the auto-router (not an engine) and unlimited classic-SR weights. Measurements above are from this machine (RTX 5090 Laptop ~23.9 GB, torch 2.11 + cu130); unmeasured tiers are marked by class, not by invented numbers.

Key Parameters (main node)

model_name (incl. auto routing), scale (1-8), tile_size, tile_pad, batch_frames, use_fp16, use_compile, temporal_strength, detail_amount, detail_radius, softness, detail_mode, face_restore, face_det_conf, face_blend, face_fidelity, face_temporal (0.50 default), input_adaptive (auto), auto_prefer (quality/speed/portrait/anime/UHD), SeedVR2: sv2_steps (12), sv2_cfg (1.2), sv2_sampler, sv2_scheduler, sv2_color (lab), DLSS5: dlss_style/dlss_intensity/dlss_detail/dlss_motion, KandinskySR: kand_mode(Auto/图像/视频,自动分流)/kand_native/kand_creativity/kand_kernels/kand_stitch/kand_window/kand_tiles_batch/kand_overlap(kand_steps/kand_use_lu/kand_fps 为兼容位), Steppe: steppe_model(仅 Wan 2.1 档)/steppe_temporal/steppe_hff/steppe_guidance/steppe_steps/steppe_seed.

Quick Start

  1. Copy repo into ComfyUI/custom_nodes/BSAI-H3-upscale-4K/
  2. Install deps: pip install numpy opencv-python spandrel onnxruntime-gpu ultralytics pillow
  3. Download models per the Chinese table below (or run python install.py for auto-check & core model download)
  4. Restart ComfyUI, hard-refresh (Ctrl+F5)

Example Workflow

workflows/BSAI-H3-v2.13.1-最佳效果.json — open in ComfyUI and run (includes sample image, 60-slot layout, auto-routing preset showing 9 rows). Auto-routing shows its decisions in the info output: engine / content / preset. The other samples with the main node (BSAI-H3-v2.8.0-极速放大.json, BSAI_H3_upscale_4K_多硬件协同.json) were rebuilt to the same 60-slot layout; the older BSAI-H3-v2.7.0-最佳效果.json (33 slots) is kept for reference only and no longer matches the current input order.

Model Weights

Full model list with download URLs (core + optional engines), legacy-download tips and directory quick-check — see the Chinese tables below. Mirror tip: replace huggingface.co with hf-mirror.com in China.

Official-native compatible (PR #17412): the H3 latent upscaler weights in models/latent_upscale_models/ are fully interchangeable with the official MiniMaxH3LatentUpscaleWithModel / LatentUpscaleModelLoader nodes (ComfyUI ≥ v0.43.0) — same files, both loaders work, no re-download. This plugin adds the multi-hardware (GPU0/GPU1/NPU) and long-video chunking enhancements on top; both paths coexist.

License

Apache-2.0.


BSAI-H3-upscale-4K

MiniMax H3 视频/图片 AI 超分 4K 插件(ComfyUI 像素域 + 潜空间双通道,速度极快)。

把 H3 生成的 720P 视频 / 低清图片一键放大到 4K,内置 Real-ESRGAN / FlashVSR / SeedVR2 / NVIDIA RTX / DLSS 5 / VOSR 2.0 / Topaz 多引擎,支持光流时域增强、人脸修复、细节增强、批量帧处理。


📦 模型权重清单与下载地址(必须用到的全部模型)

所有路径均为 ComfyUI 根目录下的 models/。标注 ✅ 的文件已随插件生态就绪/自动下载;❌ 需手动下载。 国内网络无法直连 HuggingFace 时,把 huggingface.co 换成 hf-mirror.com 即可。

一、核心模型(基础超分 + 人脸修复 + 潜空间,插件主功能必需)

| 模型 | 文件(放置路径) | 大小 | 下载地址 | |---|---|---|---| | Real-ESRGAN x4plus | upscale_models/RealESRGAN_x4plus.pth | 64 MB | https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth | | Real-ESRGAN 动漫 | upscale_models/RealESRGAN_x4plus_anime_6B.pth | 17 MB | https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth | | Real-ESRGAN 通用 | upscale_models/realesr-general-x4v3.pth | 4.7 MB | https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth | | YOLOv8-Face 人脸检测 | ultralytics/bbox/face_yolov8m.pt(s/n 可选) | 50 MB | https://huggingface.co/Bingsu/adetailer/resolve/main/face_yolov8m.pt | | GFPGAN 人脸修复 ONNX | facerestore_models/GFPGANv1.4.onnx | 325 MB | 生态流转 ONNX 导出件,无官方直链(见下方「无直链模型获取方式」) | | CodeFormer 人脸修复 ONNX | insightface/codeformer.onnx(或 facerestore_models/) | ~350 MB | 生态流转 ONNX 导出件,无官方直链(见下方「无直链模型获取方式」) | | MiniMax H3 Latent 3D 上采样 | latent_upscale_models/minimax_h3_latent_upscaler_3d_fp16.safetensors | 659 MB | https://huggingface.co/LBH-123-AI/Minimax_h3_latent_Upscaler (仓库内含 fp16 / bf16 / fp32 三版本) |

二、外部引擎权重(选装对应引擎时必需)

| 引擎 | 文件(放置路径) | 大小 | 下载地址 | |---|---|---|---| | FlashVSR-v1.1 | FlashVSR-v1.1/ 整个文件夹:LQ_proj_in.ckpt + TCDecoder.ckpt + diffusion_pytorch_model_streaming_dmd.safetensors + Wan2.1_VAE.pth | 6.5 GB | https://huggingface.co/JunhaoZhuang/FlashVSR (下载整个 FlashVSR 文件夹) | | FlashVSR 提示词嵌入 | 插件仓库内 posi_prompt.pth(随 git clone 自带,无需单独下载) | 4.2 MB | ✅ git clone 自带 | | SeedVR2 7B (fp8, numz) | SEEDVR2/seedvr2_ema_7b_fp8_e4m3fn_mixed_block35_fp16.safetensors | 7.9 GB | https://huggingface.co/numz/SeedVR2_comfyUI | | SeedVR2 7B (INT8, ComfyUI 原生) | diffusion_models/seedvr2_7b_int8_convrot.safetensors(新引擎「SeedVR2 7B INT8」自动查找,优先于此文件,其次 diffusion_models/ 其它 seedvr2、最后 SEEDVR2/) | 7.9 GB | Comfy-Org 转换包:https://huggingface.co/Comfy-Org/SeedVR2_comfyui_repackaged (ComfyUI 原生量化格式,插件走原生 NaDiT 链加载) | | SeedVR2 VAE | SEEDVR2/ema_vae_fp16.safetensors(原生引擎自动查找:SEEDVR2/ → vae/seedvr2_ema_vae_fp16.safetensors → vae/ema_vae_fp16.safetensors;三者哈希相同) | 478 MB | https://huggingface.co/numz/SeedVR2_comfyUI | | SeedVR2 文本嵌入 | 插件仓库内 pos_emb.pt + neg_emb.pt(随 git clone 自带) | 1.3 MB | ✅ git clone 自带 | | RelayVSR x4(Wan 主干) | diffusion_models/RelayVSR/relayvsr_x4_int8_convrot.safetensors(int8 量化,ComfyUI 原生链路加载;同放 diffusion_models/ 根目录也可) | 5.2 GB | 夸克网盘 Quark:https://pan.quark.cn/s/378a58226f5d(主模型包,含 x2/x4 主干 / trunk pack, x2 + x4) | | RelayVSR x2(LightX2V 主干) | diffusion_models/RelayVSR/relayvsr_x2_lightx2v_int8_convrot.safetensors | 5.2 GB | 夸克网盘 Quark:https://pan.quark.cn/s/378a58226f5d(主模型包,含 x2/x4 主干 / trunk pack, x2 + x4) | | RelayVSR Flash 解码器(x4) | vae/relayvsr VAE/relayvsr_flash_vae_x4_fp32.safetensors(在 ComfyUI 里注册为 VAE) | 127 MB | 夸克网盘 Quark:https://pan.quark.cn/s/ca4cf4e6ecfe(Flash 解码器包,含 x2/x4 / Flash VAE pack, x2 + x4) | | RelayVSR Flash 解码器(x2) | vae/relayvsr VAE/relayvsr_flash_vae_x2_fp32.safetensors | 127 MB | 夸克网盘 Quark:https://pan.quark.cn/s/ca4cf4e6ecfe(Flash 解码器包,含 x2/x4 / Flash VAE pack, x2 + x4) | | Steppe 2x(生成式潜空间) | latent_upscale_models/steppe_wan_2_1_200M_1step.safetensors(默认;轻量 steppe_wan_2_1_20M_1step.safetensors / 多步 steppe_wan_2_1_200M_base.safetensors 可选) | 424 MB | https://huggingface.co/TensorForger/Steppe-Wan2.1 (国内换 hf-mirror.com;选中档位时也会自动下载) | | Steppe 编解码 VAE | vae/wan_2.1_vae_fp32.safetensors(或 Wan2.1_VAE.pth,插件按顺序自动查找) | 507 MB | https://huggingface.co/Comfy-Org/Wan_2.1_ComfyUI_repackaged (split_files/vae/wan_2.1_vae.safetensors) | | DLSS 5 运行时 | DLSS5/video2dlssnr.exe | 429 KB | https://github.com/DaniilSokolyuk/video2dlssnr/releases/download/v1.2/video2dlssnr_release_light.zip (仅 exe) | | DLSS 5 NVIDIA DLL | DLSS5/nvngx_dlss.dll + nvngx_dlssnr.dll + nvngx.dll_dlssnr.dll | 227 MB | NVIDIA 专有运行时,来自本地 DLSS5 整合包 / NVIDIA 官方;或用全量包:https://github.com/DaniilSokolyuk/video2dlssnr/releases/download/v1.2/video2dlssnr_release.zip (含 DLL,约 247 MB) | | VOSR 2.0 | VOSR/ 整个仓库(含 preset/ckpts/VOSR2/、Qwen-Image-vae-2d/、stable-diffusion-2-1-base/、torch_cache/ DINOv2) | ~7.5 GB | https://modelscope.cn/models/cswry/VOSR (国内直连优先)或 https://huggingface.co/cswry/VOSR ;仓库源码:https://github.com/cswry/VOSR | | Topaz 引擎(商业) | Topaz_Engine/(neuroserver + models) | ~33 GB | 商业软件,自行部署:https://www.topazlabs.com (放入 models/Topaz_Engine/) |

二·补、RelayVSR 权重放置路径与下载 / RelayVSR weights — placement & download

中文

  • Wan 主干(主模型):解压后放入 ComfyUI/models/diffusion_models/RelayVSR/
    • relayvsr_x4_int8_convrot.safetensors(x4,约 4.9 GB)
    • relayvsr_x2_lightx2v_int8_convrot.safetensors(x2,约 4.9 GB)
    • 下载 / Download(夸克网盘 Quark):https://pan.quark.cn/s/378a58226f5d
  • Flash 解码器(VAE):解压后放入 ComfyUI/models/vae/relayvsr VAE/
    • relayvsr_flash_vae_x4_fp32.safetensors(x4,约 122 MB)
    • relayvsr_flash_vae_x2_fp32.safetensors(x2,约 122 MB)
    • 下载 / Download(夸克网盘 Quark):https://pan.quark.cn/s/ca4cf4e6ecfe
  • 倍率由 safetensors metadata 的 format 字段自动配对,与文件名无关;x2 / x4 各需一对(主干 + 解码器)。文件放入后需重启 ComfyUI,新权重才会被扫描到。

English

  • Wan trunk (main model): extract into ComfyUI/models/diffusion_models/RelayVSR/
    • relayvsr_x4_int8_convrot.safetensors (x4, ~4.9 GB)
    • relayvsr_x2_lightx2v_int8_convrot.safetensors (x2, ~4.9 GB)
    • Download (Quark drive): https://pan.quark.cn/s/378a58226f5d
  • Flash decoder (VAE): extract into ComfyUI/models/vae/relayvsr VAE/
    • relayvsr_flash_vae_x4_fp32.safetensors (x4, ~122 MB)
    • relayvsr_flash_vae_x2_fp32.safetensors (x2, ~122 MB)
    • Download (Quark drive): https://pan.quark.cn/s/ca4cf4e6ecfe
  • Scale is matched automatically from the safetensors metadata format field (filename-independent); each scale needs one trunk + one decoder pair. Restart ComfyUI after placing the files so the new weights are scanned.

三、无直链模型获取方式(GFPGANv1.4.onnx / codeformer.onnx)

这两个 ONNX 是人脸修复的社区流转导出件(插件严格要求 ONNX 格式),没有稳定官方直链,按优先级获取:

  1. 已有环境复制:装了 ComfyUI-Impact-Pack / ReActor 的机器上直接拷贝同名 .onnx;
  2. 整合包:BSAI / 常用 ComfyUI 整合包内 models/facerestore_models/ 或 models/insightface/;
  3. 自行导出:官方 GFPGANv1.4.pth / codeformer.pth(GitHub release)用 onnx 导出脚本转换(输入 [input] / [input, w])。

缺这两个文件不影响主超分功能,仅人脸修复模式的 GFPGAN/CodeFormer 选项不可用。

四、模型目录速查表(验证是否完整)

ComfyUI/models/
├── upscale_models/            RealESRGAN_x4plus.pth / _anime_6B.pth / realesr-general-x4v3.pth
├── ultralytics/bbox/          face_yolov8m.pt
├── facerestore_models/        GFPGANv1.4.onnx(+ GFPGANv1.3.onnx 备选)
├── insightface/               codeformer.onnx
├── latent_upscale_models/     minimax_h3_latent_upscaler_3d_fp16.safetensors + steppe_wan_2_1_200M_1step.safetensors(Steppe 引擎用)
├── FlashVSR-v1.1/             LQ_proj_in.ckpt / TCDecoder.ckpt / DMD safetensors / Wan2.1_VAE.pth
├── SEEDVR2/                   seedvr2_ema_7b_fp8_...safetensors / ema_vae_fp16.safetensors
├── diffusion_models/          seedvr2_7b_int8_convrot.safetensors(INT8 原生引擎用)
├── diffusion_models/RelayVSR/ relayvsr_x4_int8_convrot.safetensors / relayvsr_x2_lightx2v_int8_convrot.safetensors(RelayVSR 引擎用)
├── vae/                       seedvr2_ema_vae_fp16.safetensors(与 SEEDVR2 内同文件)/ wan_2.1_vae_fp32.safetensors(Steppe 编解码,也可放 Wan2.1_VAE.pth)
├── vae/relayvsr VAE/          relayvsr_flash_vae_x4_fp32.safetensors / relayvsr_flash_vae_x2_fp32.safetensors(RelayVSR Flash 解码器)
├── DLSS5/                     video2dlssnr.exe / nvngx_dlss.dll / nvngx_dlssnr.dll / nvngx.dll_dlssnr.dll
├── VOSR/                      inference_vosr_onestep.py + preset/ckpts/(VOSR2 / Qwen VAE / SD2.1 VAE / torch_cache)
└── Topaz_Engine/              neuroserver171/neuroserver.exe + models/

与官方 ComfyUI 原生节点通用(PR #17412):ComfyUI ≥ v0.43.0 起,latent_upscale_models/ 下 的 H3 latent 超分权重(minimax_h3_latent_upscaler_3d_fp16.safetensors / .pth)与官方 MiniMaxH3LatentUpscaleWithModel + LatentUpscaleModelLoader 完全通用——同一份文件, 本插件与官方节点均可直接加载,无需重复下载。本插件的 BSAI_H3_Upscale4K_Latent 提供官方没有的 多硬件(GPU0/GPU1/NPU)协同与长视频时间分块增强,两条路径并存可选。


🧪 示例工作流(v2.13.1 最佳效果,60 参数位)

workflows/BSAI-H3-v2.13.1-最佳效果.json —— 一键体验当前版本的最佳效果配置,已按 60 个参数位重新生成,打开即对齐、不再错位:

| 节点 | 配置 | 说明 | |---|---|---| | LoadImage | bsai_h3_example.png(已放入 ComfyUI/input/,400×532 低清人像) | 换成你自己的图/视频帧即可 | | BSAI_H3_Upscale4K | 模型 = Auto Route (content-based),偏好 = Quality | 自动探测 SeedVR2 fp8(精度最高)→ INT8 → VOSR → FlashVSR → Real-ESRGAN,逐级回退;面板只展开 9 行 | | ↑ 自动内容感知 | face_restore = Off(不用手动开) | 路由检测到人脸 → 自动开启 CodeFormer 修复 + 时域稳定 | | ↑ 自动分辨率感知 | input_adaptive = Auto | 低清输入自动 HD 增强重建;≥720P 输入自动 UHD 保守细节 | | ↑ 时域稳定 | face_temporal = 0.50 | 跨帧跟踪 + 参数 EMA,防"框抖动→强度跳变"闪烁 | | ↑ 画质 | temporal 0.2 / detail smart 0.5 / softness 0.1 / scale 4.0 | 光流时序 + 智能细节重建 + 柔和收敛,4K 输出 | | PreviewImage / SaveImage | — | 左下预览原图、右侧保存 4K 结果(BSAI-H3-v27-4K 前缀) |

使用:拖入 ComfyUI → 点运行(LoadImage 可换图)。info 输出会完整显示自动路由决策(引擎 / 内容 / 档位)。

关于参数位:文件里 widgets_values 是完整的 60 项(不是只存了非默认值),所以任何一项都能被正确读回;想换成别的引擎,直接在节点下拉里切,面板会自动换成该引擎的参数栏,切回去时原来的值还在(tools/verify_engine_panel.mjs 已验证保存→重载零丢位)。

旧文件:workflows/BSAI-H3-v2.7.0-最佳效果.json 只有 33 个参数位(早于 auto_prefer / rtx_vfx_* 等参数加入),打开会整体错位一档,仅保留作历史参考,不要再用它跑。

其他示例工作流

| 文件 | 含主节点 | 布局 | 说明 | |---|---|---|---| | BSAI-H3-v2.13.1-最佳效果.json | 是 | 60 位,430×330(自动路由 9 行) | 当前推荐入口 | | BSAI-H3-v2.8.0-极速放大.json | 是 | 60 位,348×306(Topaz 8 行) | FastH3 出片 → Topaz Starlight 2.6 放大;参数位已重排 | | BSAI_H3_upscale_4K_多硬件协同.json | 是 | 60 位,420×450(经典 14 行) | 人脸裁剪 → 经典 Real-ESRGAN → VAE 路由 → NPU 辅助;参数位已重排 | | BSAI-RelayVSR批量超分-示例.json | 否 | — | 只有 BSAI_RelayVSR_BatchUpscale(17 个参数),与主节点无关,无需改动 | | BSAI-H3-v2.7.0-最佳效果.json | 是 | 33 位(旧) | 仅历史参考,已被 v2.13.1 版取代 |


🛠️ v2.7.1 修复(VOSR / DLSS5 大图健壮性)

| 问题 | 根因 | 修复 | | --- | --- | --- | | VOSR 大图 OOM | 非方形帧被补成正方形(1536×2048→2048×2048,面积+33%)后全图 VAE 推理 | 短边 >1024 自动启用官方 latent 分块(tile 640)+ VAE 分块(1024),峰值显存降到单 tile 级;tile 路径只做最小 16 对齐不再补正方形 | | VOSR Input height (131) should be divisible by patch size (2) | VOSR DiT latent=像素/8、patch=2 → 输入必须为 16 的倍数(507×524 补成 524 → latent 131 非偶) | fast path 补成"正方形+16 对齐",tile 路径最小 16 对齐,推理后按原比例裁回 | | DLSS5 CreateFeature 18 failed | DLSS NR 输出上限 7680(实测 8192 失败) | 目标超限自动分块(每块 ≤7680)+ 重叠线性融合,任意尺寸可用 | | VOSR 子进程偶发崩溃(WinError 10060) | torch.hub 每次启动联网探测 GitHub 默认分支,网络超时未捕获 | VOSR 仓库 inference_vosr_onestep.py / inference_vosr.py 打离线 DINOv2 补丁:本地权重 + 缓存 repo 加载,失败才回退在线 |

VOSR 离线补丁部署(换机/重装时需要):把补丁应用到 models/VOSR/inference_vosr_onestep.py 与 inference_vosr.py 的 load_dinov2() —— 本地优先从 preset/ckpts/torch_cache/checkpoints/dinov2_vitl14_pretrain.pth + preset/ckpts/torch_cache/facebookresearch_dinov2_main/ 加载,彻底免除 GitHub 联网依赖。

实测(RTX 5090 Laptop 24GB):507×524→1014×1048(42s);1536×2048→4096×3072(tile,77s);VOSR×2+DLSS5×2 全链→8192×6144(83.5s);22 项单元测试全过。


🛠️ DLSS5 报错「未找到 video2dlssnr.exe」排错 / Troubleshooting (bilingual)

现象 / Symptom:节点 130 执行报 RuntimeError: [BSAI-H3/DLSS5] 未找到 video2dlssnr.exe。 DLSS 5 引擎是"本机调用"设计:exe 与 3 个 NVIDIA 专有 DLL 不随插件分发,需就位于 ComfyUI/models/DLSS5/。 The DLSS 5 engine invokes a local runtime: the exe + 3 proprietary NVIDIA DLLs are not shipped with the plugin and must exist under ComfyUI/models/DLSS5/.

所需 4 个文件 / Required files (put all 4 in ComfyUI/models/DLSS5/):

| 文件 file | 大小 size | 来源 source | |---|---|---| | video2dlssnr.exe | 0.4 MB | 官方 light 包 official light zip: video2dlssnr_release_light.zip | | nvngx_dlss.dll | 56 MB | NVIDIA 专有 proprietary:驱动包 driver pack / 全量包 full zip / 本机其它整合包 other local packs | | nvngx_dlssnr.dll | 158 MB | 同上 same as above | | nvngx.dll_dlssnr.dll | 13 KB | 同上 same as above |

全量包(exe+DLL 一次到位,约 247MB)full bundle: video2dlssnr_release.zip

自动发现(v2.9.3 起)/ Auto-discovery (since v2.9.3):运行时查找不再只扫描写死的 C:\BSAI\DLSS5——插件与 install.py 会从实际安装路径向外发现同层其它 ComfyUI 整合包的 models/DLSS5/(例如 G:\Comfyui_BSAI\ComfyUI\models\DLSS5\),命中即自动复制/直接使用,无需任何手动操作;旧默认目录与环境变量 VIDEO2DLSSNR_PACK_DIR / VIDEO2DLSSNR_EXE 仍然有效。 The search area is now derived from the live install path: sibling ComfyUI packs' models/DLSS5/ on the same drive/level are probed automatically (e.g. G:\Comfyui_BSAI\ComfyUI\models\DLSS5\) and reused without any manual step; the legacy C:\BSAI\DLSS5 default and the VIDEO2DLSSNR_PACK_DIR / VIDEO2DLSSNR_EXE env vars keep working.

手动兜底 / Manual fallback:

  1. 运行 python install.py(自动扫描本地包复制,缺 exe 时联网下载官方 light 包 / auto-copies local packs, downloads the official light zip if exe missing);
  2. 或手动把 4 个文件放入 ComfyUI/models/DLSS5/(或放入本插件 bin/ 只放 exe,DLL 仍需同目录)/ or copy the 4 files into ComfyUI/models/DLSS5/ (exe-only into plugin bin/ works too, DLLs must sit beside it)。

🚀 快速安装

  1. 把本仓库放入 ComfyUI/custom_nodes/BSAI-H3-upscale-4K/;
  2. 安装依赖:pip install numpy opencv-python spandrel onnxruntime-gpu ultralytics pillow;
  3. 下载上表模型放入对应 models/ 目录(或直接运行 python install.py 一键自检 + 自动下载核心模型);
  4. 重启 ComfyUI,刷新浏览器(Ctrl+F5)。

🎛️ 功能与引擎

  • 自动路由:按内容/输入一键选引擎(质量/速度/人像/动漫/UHD 五档偏好 + 人脸/分辨率自动感知),对标 HitPaw VikPea 模型选择器
  • 像素域超分:Real-ESRGAN 系(x4plus / anime / general)+ 光流时域增强 + 批量帧
  • 扩散视频超分:FlashVSR-v1.1 / SeedVR2 7B(fp8 numz 路径 + INT8 ComfyUI 原生路径双引擎)
  • 硬件超分:NVIDIA RTX Video Super Res / DLSS 5 神经渲染(RTX 显卡最快 4K 路线)
  • RTX 去噪 / 去模糊(VFX):NVIDIA RTX VSR - 去噪/去模糊 (VFX) 引擎——官方 ComfyUI_Nvidia_VFX_Nodes 同款 nvvfx DENOISE_*/DEBLUR_* 档位(同分辨率清理,无模型文件);op 选 去噪/去模糊、level 选 LOW~ULTRA、strength 调强度;scale>1 时清理后自动接 RTX ULTRA 放大(先清理后放大)
  • 生成式超分:VOSR 2.0(CVPR 2026,模糊图→清晰,海报文字还原最强)+ 双引擎组合
    • VOSR 2.0 + DLSS 5(双引擎完美档):VOSR 生成细节 → DLSS 硬件放大
    • VOSR 2.0 + RTX(视频推荐两级放大):VOSR 去模糊 → RTX 二次清晰化
  • 人脸修复:GFPGAN / CodeFormer(YOLOv8-Face 检测,小脸自适应增强)
  • 生成式潜空间超分:Steppe(Wan 2.1 VAE 潜空间 1 步蒸馏 2x 生成细节 + 可选 2x 智能补帧,424 MB;主节点 Steppe 2x 档 + BSAI/H3/Steppe 7 个潜空间节点,运行时内置、不需要独立节点包)
  • 潜空间上采样:H3 Latent 3D Upscaler(生成阶段直接放大)
  • 引擎参数面板:选中哪个 model_name,节点只显示该引擎真正读取的参数,其余自动隐藏、节点高度同步收缩(v2.13.1,详见「7. 引擎参数面板」)
  • Topaz 引擎:商业软件接入

📝 更新日志

v2.13.3 — 其余示例工作流一并重排到 60 参数位 / Remaining sample workflows rebuilt for the 60-slot layout

中文

  • BSAI-H3-v2.8.0-极速放大.json:主节点(id 24)从 33 位重排为 60 位,档位归一为 Topaz Starlight 2.6 (generative)(原中文标签走同一映射),对象尺寸按该档 8 行改成 348×306;24 个节点与 29 条连线一字未动。
  • BSAI_H3_upscale_4K_多硬件协同.json:主节点(id 4)从 28 位重排为 60 位,保留经典权重 realesr-general-x4v3.pth、scale 4,尺寸按 14 行改为 420×450;14 个节点与 12 条连线保持不变。
  • BSAI-RelayVSR批量超分-示例.json:核实无需改动——里面只有 BSAI_RelayVSR_BatchUpscale(17 个参数),与主节点无关,/object_info 对齐。
  • BSAI-H3-v2.7.0-最佳效果.json:仍按历史文件保留(33 位),入口统一指向 v2.13.1 版,避免两份同样配置重复。
  • 重排规则:按"auto_prefer 在首 / model_name 在首"两种历史顺序自动判定年代,逐项按名映射,缺失项补当前默认值,中文档位标签归一为英文标准值;再在真实前端加载单节点,确认每个下拉值都是合法选项后才写回。
  • 工具:tools/rebuild_legacy_workflows.mjs(批量识别旧参数位 → 归一化 → 前端校验 → 回写;BSAI_FORCE_SIZE=1 可只重算尺寸)。

English

  • BSAI-H3-v2.8.0-极速放大.json: the main node (id 24) went from 33 to 60 slots, the tier normalized to Topaz Starlight 2.6 (generative) (the old Chinese label maps through the same table), and the node was resized to 348×306 for that 8-row tier; all 24 nodes and 29 links are untouched.
  • BSAI_H3_upscale_4K_多硬件协同.json: the main node (id 4) went from 28 to 60 slots, keeping the classic realesr-general-x4v3.pth weight at scale 4, resized to 420×450 for 14 rows; its 14 nodes and 12 links are unchanged.
  • BSAI-RelayVSR批量超分-示例.json: verified as needing no change — it only contains BSAI_RelayVSR_BatchUpscale (17 inputs) and is already consistent with /object_info.
  • BSAI-H3-v2.7.0-最佳效果.json: deliberately left as a 33-slot historical file; the entry point is the v2.13.1 version, so the same configuration is not duplicated.
  • How the rebuild works: the era is detected from whether auto_prefer or model_name sits first, values are mapped by name, missing entries take current defaults, legacy Chinese labels are normalized, and every combo is re-validated on a live frontend before the file is written.
  • Tool: tools/rebuild_legacy_workflows.mjs (scan → normalize → frontend check → write back; BSAI_FORCE_SIZE=1 recomputes sizes only).

v2.13.2 — 示例工作流重制为 60 参数位(含示例图)/ Sample workflow rebuilt for the 60-slot layout

中文

  • 新示例:workflows/BSAI-H3-v2.13.1-最佳效果.json —— widgets_values 是完整的 60 项(不是只存非默认值),节点尺寸按"自动路由 9 行"设为 430×330;原 4 节点链条与连线(LoadImage → BSAI_H3_Upscale4K → SaveImage / PreviewImage)原样保留。
  • 补示例图:新增 ComfyUI/input/bsai_h3_example.png(400×532 低清人像,AI 生成样图)。此前 README 声称示例图已随包提供,实际 input/ 里并没有这个文件,本次补齐,LoadImage 直接指向它,拖进画布即可运行。
  • 参数取值:Auto Route (content-based) + Quality + scale 4.0 + detail_amount 0.5 + detail_mode smart + softness 0.1 + face_restore Off,其余 53 项取插件默认值;切到别的引擎再切回来,原值不丢。
  • 校验:前端两次加载(写入文件后再读回)均通过,所有下拉值都在合法选项内、可见 9 行、尺寸 430×330;服务端 /prompt 接受该参数组合(校验通过)。测试期间队列正被本机自己的 H3 电影工厂任务占用,为避免抢卡没有继续等它渲染,未做完整 4x 出图。
  • 旧文件:workflows/BSAI-H3-v2.7.0-最佳效果.json(33 个参数位,早于 auto_prefer / rtx_vfx_* 等参数)保留作历史参考,README 已标注"打开会整体错位一档,不要再用"。
  • 新工具:tools/make_example_workflow.mjs(重新生成 + 双次加载校验)、tools/run_example_api.py(按 API 格式直接跑示例)、tools/dump_node_spec.py(导出 60 项的类型/默认值/可选项,生成示例时按它取值)。

English

  • New sample: workflows/BSAI-H3-v2.13.1-最佳效果.json — a full 60-entry widgets_values (not just non-defaults), node sized 430×330 for the 9-row auto-routing view, with the original 4-node chain and links (LoadImage → BSAI_H3_Upscale4K → SaveImage / PreviewImage) preserved.
  • Sample image added: ComfyUI/input/bsai_h3_example.png (400×532 low-res AI-generated portrait). The README previously claimed this file shipped, but input/ did not actually contain it; it exists now and LoadImage points at it, so the workflow runs right after drag-and-drop.
  • Values: Auto Route (content-based) + Quality + scale 4.0 + detail_amount 0.5 + detail_mode smart + softness 0.1 + face_restore Off; the other 53 entries use plugin defaults, and switching engines back and forth keeps them.
  • Verified: loaded twice in the frontend (write file, then read it back) — every combo value is a legal option, 9 rows visible, node 430×330; the server accepted the parameter set through /prompt (validation passed). The machine was busy running its own H3 film-factory job during the check, so the run was not awaited and no full 4x render was produced.
  • Legacy file: workflows/BSAI-H3-v2.7.0-最佳效果.json (33 slots, predates auto_prefer / rtx_vfx_*) is kept for historical reference only; the README now states it opens one slot out of alignment and should not be used.
  • New tools: tools/make_example_workflow.mjs (regenerate + double-load check), tools/run_example_api.py (run the sample through the API), tools/dump_node_spec.py (dumps type/default/options for all 60 inputs, used to build the sample).

v2.13.1 — 引擎参数面板:选哪个引擎只显示哪个引擎的参数 / Engine-aware parameter panel

中文

  • 动态显隐:web/bsai_engine_panel.js 挂到 BSAI_H3_Upscale4K,按 model_name 只显示该引擎真正读取的参数(16 类引擎档 + 3 个 Topaz 档 + 经典 Real-ESRGAN 权重),其余自动隐藏,节点高度同步收缩;选 Steppe 时 60 项收敛到 14 项,选 SeedVR2 fp8 只剩 8 项。
  • 排他性:每个引擎的专属参数不会出现在别的引擎上(dlss_* 是 DLSS 5 与其 VOSR 串联档的共享组,两边读同一批参数);Auto Route 只多出 auto_prefer。
  • 联动:face_restore ≠ Off 展开 5 个人脸参数,detail_amount > 0 才出现 detail_radius;两套开关与引擎互不干扰,任何引擎下规则一致。
  • 不动工作流结构:只设 widget.hidden / widget.options.hidden,不删 widget、不改顺序和 type,widgets_values 位置与数量不变;旧工作流(含旧中文档位名)打开后自动收敛。
  • 实现:规则与挂载分离 —— web/bsai_engine_panel_core.js 存纯逻辑(引擎识别、参数分组、可见集),web/bsai_engine_panel.js 负责 nodeCreated / loadedGraphNode 挂载、包裹 model_name / face_restore / detail_amount 的 callback、onDrawForeground 兜底与 computeSize 收缩。
  • 验证:tools/dump_panel_widgets.py 从 Python INPUT_TYPES 导出 60 个 widget;tools/test_engine_panel.mjs 断言全覆盖、16 类映射、互斥性(通过);tools/verify_engine_panel.mjs 用无头 Chrome 打开真实 8181 实例,实测 Steppe 14 项 / 经典 14 项 / Kandinsky 19 项 / SeedVR2 8 项 / Auto 9 项,人脸组展开 5 项、关闭后收起,节点高度随行数变化(306–570 px),切回 Steppe 结果与首次一致;并在同一实例做"隐藏参数 → 保存 → 重载"回归,60 个值零差异(含不可见的 tile_size / vosr_steps)。
  • 注意:需重启 ComfyUI 并 Ctrl+F5;隐藏参数仍按上次的值提交,想改先切到对应引擎。

English

  • Dynamic panel: web/bsai_engine_panel.js attaches to BSAI_H3_Upscale4K and shows only the inputs the selected model_name actually reads (16 engine tiers + 3 Topaz tiers + classic Real-ESRGAN weights), hiding the rest and resizing the node; Steppe collapses 60 rows to 14, SeedVR2 fp8 to 8.
  • Exclusivity: no tier shows another tier's inputs (dlss_* is shared only by DLSS 5 and its VOSR chain, which read the same values); Auto Route adds just auto_prefer.
  • Overlays: face_restore ≠ Off reveals the five face inputs, detail_amount > 0 reveals detail_radius; both layer on any engine with identical rules.
  • Workflow-safe: only widget.hidden / widget.options.hidden are set — no widget removal, no reorder, no type change — so widgets_values positions and counts are untouched and old workflows (including legacy Chinese tier names) converge on load.
  • Structure: rules and mounting are split — web/bsai_engine_panel_core.js holds the pure logic (engine detection, groups, visible set), web/bsai_engine_panel.js handles the nodeCreated / loadedGraphNode hooks, wraps the model_name / face_restore / detail_amount callbacks, and does the onDrawForeground fallback plus computeSize shrink.
  • Verified: tools/dump_panel_widgets.py exports all 60 widgets from INPUT_TYPES; tools/test_engine_panel.mjs checks coverage, 16 mappings and exclusivity (passing); tools/verify_engine_panel.mjs drives the live 8181 instance in headless Chrome and measured Steppe 14 rows / classic 14 / Kandinsky 19 / SeedVR2 8 / Auto 9, face group expanding by 5 and collapsing, node height tracking row count (306–570 px), and a switch back to Steppe reproducing the first state; it also runs a hide → save → reload roundtrip on the same instance with zero value drift across all 60 slots (including hidden tile_size / vosr_steps).
  • Notes: restart ComfyUI and Ctrl+F5; hidden inputs still submit their last values, so switch tiers to edit them.

v2.13.0 — 内置 Steppe 生成式潜空间超分(新引擎档 + 7 节点 + 原包移除)/ Built-in Steppe generative latent SR

中文

  • 新增档位:主节点 model_name 增加 Steppe 2x (Wan2.1 latent generative SR);像素进像素出,内部 Wan 2.1 VAE 编码 → 1 步蒸馏潜空间 2x 生成细节 → 解码;4x 自动串两次 2x,非 2 的幂最后精确缩放。新增 6 个参数 steppe_model / steppe_temporal / steppe_hff / steppe_guidance / steppe_steps / steppe_seed 追加在输入末尾,旧工作流 widget 不错位。
  • 运行时内置:steppe/(上游 TensorForger/ComfyUI-Steppe,MIT,附 LICENSE-upstream / NOTICE-upstream);7 个节点由插件 __init__.py 统一注册到 BSAI/H3/Steppe,加载失败只丢 Steppe 节点、不影响主节点。独立 ComfyUI-Steppe 包不再需要,G:\Steppe(12.4 GB)已删除,插件自包含。
  • 权重:models/latent_upscale_models/steppe_wan_2_1_200M_1step.safetensors(424 MB)+ models/vae/wan_2.1_vae_fp32.safetensors(507 MB,自动查找)。
  • 隔离:H3 latent 节点的 _scan_latent_models() 显式排除 steppe_*;主节点下拉只列 Wan 2.1 档,FLUX.2 档与 H3→FLUX.2 译者只走潜空间节点。
  • 长片:编码 81 帧 / 解码 21 潜帧分段,1 帧重叠拼接。
  • 验证(RTX 5090 Laptop 23.9 GB):256×256 ×2 约 1s(首次含加载约 20s)、×4 约 0.5–0.7s;5 帧 192×256 ×2 约 0.6s,开补帧 5→9 帧约 1–2.8s;121 帧 96×96 ×2 约 2.3s 且帧数精确;真实 ComfyUI 实例 /object_info 核验 7 节点 + 主节点档位全部注册。
  • 注意:需重启 ComfyUI 生效;detail_amount 建议 0;开补帧后下游 fps 要 ×2。

English

  • New tier: Steppe 2x (Wan2.1 latent generative SR) on the main node — pixel in / pixel out via Wan 2.1 VAE encode → 1-step distilled latent 2x → decode. 4x chains two 2x passes; other scales get one final exact resize. Six new inputs (steppe_model / steppe_temporal / steppe_hff / steppe_guidance / steppe_steps / steppe_seed) are appended at the end, so saved workflows keep their widget mapping.
  • Bundled runtime: steppe/ (upstream TensorForger/ComfyUI-Steppe, MIT, LICENSE-upstream / NOTICE-upstream); the 7 nodes are registered by the plugin __init__.py under BSAI/H3/Steppe and a failure only drops the Steppe nodes. The standalone ComfyUI-Steppe pack is no longer needed; G:\Steppe (12.4 GB) was deleted and the plugin is self-contained.
  • Weights: models/latent_upscale_models/steppe_wan_2_1_200M_1step.safetensors (424 MB) + models/vae/wan_2.1_vae_fp32.safetensors (507 MB, auto-discovered).
  • Isolation: the H3 latent node's _scan_latent_models() filters steppe_*; the main dropdown lists Wan 2.1 tiers only, while FLUX.2 tiers and the H3→FLUX.2 translator live in the latent nodes.
  • Long clips: 81-frame encode chunks and 21-latent decode chunks stitched with a one-step overlap.
  • Verified (RTX 5090 Laptop 23.9 GB): 256×256 ×2 ~1s warm (~20s first call incl. load), ×4 ~0.5–0.7s; 5 frames 192×256 ×2 ~0.6s, with interpolation 5→9 frames ~1–2.8s; 121 frames 96×96 ×2 ~2.3s with exact frame count; a real ComfyUI instance confirmed all 7 nodes plus the new tier through /object_info.
  • Notes: restart ComfyUI to load it; keep detail_amount at 0; double the downstream fps when interpolation is on.

2026-12-01 文档盘点 — 新增「引擎总览 / Engine Inventory」全量清单(纯文档,无代码改动)

  • 为什么加:引擎一路加到 FlashVSR / RelayVSR / ReCaVSR / KandinskySR / SeedVR2(fp8+INT8) / RTX VSR / RTX VFX / DLSS 5 / VOSR 2.0 / 两组串联 / Topaz 3 档之后,下拉框已经很长,但没有一处能一眼看清"到底有多少种、彼此怎么选"。
  • 加了什么:新章节「引擎总览 / Engine Inventory」逐条对照 ENGINE_OPTIONS(14 条,含 1 条旧版别名)、TOPAZ_OPTIONS(3 条)、list_available_models()(内置 3 个 + 目录任意权重,本机 19 个)和 12 个实际派发分支,给出总账:18 个固定档位 = 12 引擎档 + 3 Topaz 档 + 3 内置经典 SR,去重后 9 种独立引擎 + 2 种双引擎串联,另有 1 个自动路由与 1 个兼容别名;并补了 5 个附带节点(Latent 6 方式 / Face Restore 4 档 / Topaz Face Restore 6 模型 / DLSS5 独立节点 / RelayVSR 批量)的档位计数。
  • 数据口径:速度与显存只写实测值(ReCaVSR 8 帧 144×256→576×1024 fast 40.5s / exact 290.7s、Kandinsky 图像约 24–30s / 视频 9 帧 136.8s、SeedVR2 fp8 84s / INT8 130s、RelayVSR ~5.2 GB、ReCaVSR ~6.2/10.4 GB、Kandinsky ~13/9 GB),未实测的档位只标速度档位,不编造数字。

v2.12.5 — 修 4 通道(RGBA)图像输入导致 Kandinsky ImageSR 报 "expected input to have 3 channels"

  • 症状:报 RuntimeError: Given groups=1, weight of size [128, 3, 3, 3], expected input[1, 4, 1024, 1024] to have 3 channels, but got 4 channels instead,栈落在 _kand_v2_image → kandinsky_sr/image/upscale.py:104 vae_fast.encode → ae.py encode → conv_in。
  • 根因:上游送来的 IMAGE 是带 alpha 的四通道 [B,H,W,4](RGBA),ImageSR 用的 FLUX VAE 首层 conv 权重固定 [128,3,3,3];节点此前把张量原样透传,没有做通道归并。
  • 修法:_normalize_image_input() 新增 _as_rgb_frames() —— 4 通道丢 alpha 取前 3、单通道复制成 3 通道、3 通道原样返回;若收到末维很大且第二维 ≤4 的 [B,4,H,W](潜空间误当图像),直接抛出可读报错而不是扔进 conv 炸栈。
  • 验证:1 帧 96×160 RGBA 走图像路线,输出 (1,192,320,3),28.0s PASS;灰度 1 通道正常归并为 3 通道;[1,4,1024,1024] 张量被正确识别为潜空间并报错。

v2.12.3 — 修 ReCaVSR 2.0 在 Triton 3.5 下编译失败(Did you forget to add @triton.jit?)

  • 症状:RecaVSR 选 kernels = exact 时报 triton.compiler.errors.CompilationError ... ValueError('Did you forget to add @triton.jit?'),指向 recavsr_vendor/flashdecoder.py 的 local_attention 循环头。原因是 Triton 3.5 不再允许在 jit 循环头里调用 tl.cdiv 这类自带语义的 builtin(该表达式在 Python 层求值,拿不到 _semantic)。
  • 修法:把循环上界、行数、窗口上下界全部改在 host 端算成普通 int,作为 constexpr 形参传给 kernel(STEPS / ROWS / H_LO / H_HI / W_LO / W_HI),kernel 内改用 tl.range(0, STEPS);同时把窗口偏移和 patch 原点统一成参考实现的 -wh // 2 语义(奇数窗口下 Python 取整会让窗口不对称,原 kernel 用的是对称窗口,两者在奇数窗口下结果不一致)。
  • 验证:kernel 与 torch 参考路径逐元素对齐(fp16,最大差 <1.2e-4,覆盖 window 5/11/24、group_size 1/4、单帧/多帧缓存);引擎级自检 tools/self_test_recavsr.py 在 5090 上 --kernels exact 290.7s(8 帧 144×256 → 576×1024)、--kernels fast 40.5s,两次帧间差 0.222 / 0.222(两路结果一致),均 PASS。
  • 性能提示:exact 是上游参考核对用的保守 kernel,实测比 fast(comfy-kitchen 融合窗口注意力)慢 7 倍左右;只跑 1 组帧(group_size == 1)时建议选 fast。
  • 默认值改为 fast(v2.12.4):节点输入 recav_kernels / kand_kernels 以及 recavsr_vendor 内部(engine / session / flashdecoder / attention)的 kernel 默认值统一为 fast;exact 仍可在节点下拉手选,CPU 上没有 CUDA 时会自动回退 exact。

v2.12.2 — KandinskySR 运行时内置化:彻底去掉外部节点包依赖

  • 移植方式:把上游 PedroMarinhoDev/ComfyUI-KandinskySR 的 kandinsky_sr 运行时代码整包内置到本插件的 kandinsky_sr_vendor/(image/、video/、kernels/ 共 46 个 py 文件,约 455 KB),随插件一起分发;同时保留上游 LICENSE-MIT、LICENSE、NOTICE 与原始 README,MIT 归属完整。
  • 加载方式:_kand_v2_pack() 改为用独立包名 _bsai_kandinsky_sr_vendor 加载内置目录(不再往 sys.path 插 custom_nodes/ComfyUI-KandinskySR,因此不会和别处同名 kandinsky_sr 包串味),只显式 import 需要的 image.* / video.* 子模块,不注册任何节点。
  • 外部包可删:custom_nodes/ComfyUI-KandinskySR 已不再被引用,可直接删除(本机 C/G 两份都已移除)。缺 kandinsky_sr_vendor/ 时节点会明确提示"重新下载完整插件包"。
  • 自检:tools/self_test_kandinsky.py 的存在性检查改为校验内置 kandinsky_sr_vendor/kandinsky_sr,权重检查改用 folder_paths.get_full_path();在外部包被改名/移除的状态下图像与视频两条路线均 PASS。
  • 无新增依赖:上游本身无 pip 依赖,内置后依然只需要 ComfyUI 0.8.0+ / PyTorch 2.8+。

v2.12.0 — KandinskySR 2.0 升级:图像 / 视频自动分流(改用 ComfyUI-KandinskySR 运行时)

  • 下拉档位合并:只保留 KandinskySR 2.0 (auto image/video)。旧的 (2-step video SR) 已从下拉移除,历史工作流里的同名字符串仍会被别名映射到新档位并照常执行。
  • 自动分流:节点按输入帧数自动选路线——1 帧 = 图像路线(ImageSR 2.0,1 步,FLUX VAE vae/ae.safetensors),多帧 = 视频路线(VideoSR 2.0,2 步蒸馏 π-Flow + KVAE + x2/x4 潜空间放大器)。kand_mode 可强制 图像 / 视频 覆盖自动判定。
  • 实现方式(起步为复用,v2.12.2 起改为内置):v2.12.0 直接复用第三方包 ComfyUI-KandinskySR 的运行时代码;v2.12.2 已把这份运行时(上游 MIT)整包移植进本插件的 kandinsky_sr_vendor/,不再依赖外部节点包。
  • 权重目录(5 个文件 + 1 个 FLUX VAE),HF 仓库 PedroMarinhoDev/Kandinsky-SR-ComfyUI(镜像 https://hf-mirror.com):
    • models/diffusion_models/kandinsky-sr/kandinsky_image_sr_2.0_int8_convrot.safetensors(4.78 GiB,图像)
    • models/diffusion_models/kandinsky-sr/kandinsky6_vsr_2.0_distilled2steps_int8_convrot.safetensors(1.82 GiB,视频)
    • models/vae/kandinsky-sr/kandinsky_kvae_3d_2.0_t4s16_bf16.safetensors(3.24 GiB,视频 KVAE)
    • models/latent_upscale_models/kandinsky-sr/kandinsky6_sr_latent_upscaler_x2_bf16.safetensors(1.42 GiB)
    • models/latent_upscale_models/kandinsky-sr/kandinsky6_sr_latent_upscaler_x4_bf16.safetensors(2.69 GiB)
    • models/vae/ae.safetensors(FLUX.1 VAE,图像路线用;本机已有)
    • x2 与 x4 必须同时存在:包内视频加载器会校验两个放大器路径,即使只跑 2x。INT8 可换同系列 BF16(改 _KAND_*_FILE 常量即可)。
  • 专属参数:kand_mode(Auto/图像/视频)、kand_native(Auto/x2/x2.25/x4,图像只有 2/4)、kand_creativity(0-8,默认 4,图像细节强度)、kand_kernels(fast/exact)、kand_stitch(pixels/latent,视频)、kand_window(361,1+8k,17-505)、kand_tiles_batch(1-16)、kand_overlap(0.2);kand_steps / kand_use_lu / kand_fps 保留为兼容位(视频路线固定 2 步蒸馏、固定带放大器)。
  • 倍率与输出:原生重度(图像 2/4,视频 2/2.25/4)算完后,按用户 scale 用 bicubic 精调到目标尺寸并 clamp,输出帧数与输入严格一致(内部按 ArrayFrames(fps=24) 喂入,不做抽帧)。
  • 长片处理:视频按 kand_window(默认 361 帧 ≈ 15s@24fps)分窗,相邻窗共享 9 帧线性交叉淡化,避免接缝硬切。
  • 显存:图像路线峰值约 9 GiB;视频路线约 13 GiB(DiT 1.82 + KVAE 3.24 + 放大器按需 + 分块激活)。建议空闲 ≥12 GiB(图像)/ ≥16 GiB(视频)。
  • 自检:tools/self_test_kandinsky.py(--frames 1 走图像、--frames 9 走视频,--save 输出预览到 ComfyUI/output/kandinsky_selftest/)。
  • 旧方案下线:原 kandinsky6-sr + models/diffusion_models/Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers/(17.4 GB)已不再被代码引用,可自行删除释放空间。
  • 旧工作流兼容(v2.12.1):早年保存的工作流里 model_name 是 KandinskySR 2.0 (2-step video SR)、kand_native 存整数 2、kand_tiles_batch 存 0、kand_overlap 存 1.0、kand_steps 存 1,会被 ComfyUI 默认校验直接丢弃整条 prompt。现在 VALIDATE_INPUTS 接管这几个档位的校验,运行时统一归一(tiles_batch 0→1、overlap >0.9→0.9、native 2/4→x2/x4、window 对齐 1+8k),旧工作流打开即可直接跑,不必手改参数。
  • 权重查找:改为走 folder_paths.get_full_path()(支持 extra_model_paths 与软链接),不再死认 ComfyUI/models 绝对路径;报错时会打印实际扫描到的模型目录,便于排查 junction 失效。

v2.11.0 — ~~新增「KandinskySR 2.0」引擎(复用官方 kandinsky6-sr 管线)~~(已由 v2.12.0 取代)

  • 新增档位:模型下拉新增 KandinskySR 2.0 (2-step video SR)。Kandinsky 6.0 视频超分,2 步蒸馏 π-Flow,原生 2x / 2.25x / 4x(1080P 素材 2.25x 直上 4K)。
  • 实现方式(复用而非拷贝):直接调用已安装的官方 kandinsky6-sr 节点包(Kandinsky6SRVAELoader / Kandinsky6LatentUpscalerLoader / Kandinsky6VSRUpscale)+ ComfyUI 原生 MODEL 链路(SR DiT 走节点包注入的模型检测器)。不复制 vendor 代码、不改外部插件;节点包缺失时给出明确安装提示。
  • 权重目录:models/diffusion_models/Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers/(transformer 3.19 GB + vae 6.96 GB + 可选 latent_upscaler 7.31 GB),HF 仓库 kandinskylab/Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers;国内建议走 ModelScope 同源镜像(modelscope download kandinskylab/Kandinsky-6.0-VSR-2.0-distilled2steps-Diffusers --local_dir ...,实测 27 MB/s)。
  • 专属参数:kand_native(Auto/x2/x2.25/x4)、kand_steps(2)、kand_tiles_batch(1)、kand_overlap(0.2)、kand_use_lu(True=潜空间 LU 画质优先,False=纯像素路线省显存)、kand_fps(24)。
  • 长片处理:官方模型单次预算 121 帧(5s@24fps),节点内按 121 帧分段、段内补帧对齐 1+8k 后再裁回原帧数,输出帧数与输入一致,下游合成/音频不受影响。
  • 后处理:自带时序一致性(Hann 分块融合),本插件光流时域 pass 自动跳过;detail / softness / face_restore 仍可叠加。
  • 显存策略:适配器在推理前 force_full_load 把 SR DiT + KVAE(+ LU)整载进显存,避免 ComfyUI 低显存“部分卸载”导致 KVAE 自定义卷积报 dtype 不匹配;装不下时直接给出可操作提示(关掉其它占显存的 ComfyUI/渲染任务、kand_use_lu=False 省约 7GB、降 scale)。建议空闲显存 ≥16GB(LU 路线)/ ≥11GB(像素路线)。
  • 自检:tools/self_test_kandinsky.py(--save 输出预览 PNG 到 ComfyUI/output/kandinsky_selftest/)。

v2.10.0 — 新增「RelayVSR (one-step Wan VSR)」引擎(移植 RelayVSR / LightX2V x2,不装外部节点包)

  • 新增档位:模型下拉新增 RelayVSR (one-step Wan VSR),一步蒸馏 Wan 视频超分(RelayVSR + LightX2V RelayVSR_X2 同源)。
  • 实现方式(移植而非安装):直接走 ComfyUI 原生链路 comfy.ldm.wan.model_vsr —— Wan 关键帧主干(每 15 帧 + 末帧)经 1 步 euler + simple、cfg 1 采样出关键帧 latent,再由 RelayVSR Flash 解码器(在 ComfyUI 里注册为 VAE)逐帧还原全部帧像素。不再需要 ComfyUI-Relay-VSR 节点包(本插件内自实现,删掉外部插件不影响)。
  • 权重自动配对:按 safetensors metadata 的 format 字段识别倍率并成对匹配,与文件名无关 —— Wan relayvsr-wan-x2-v1(x2) / refvsr-wan-v1(x4),Flash relayvsr-flash-x2-v1(x2) / refvsr-flash-v1(x4)。 目录:models/diffusion_models/RelayVSR/(主干)+ models/vae/relayvsr VAE/(Flash 解码器),本整合包已按此归位。
  • 专属参数:relay_weights(Auto 按 scale 自动选档,>=3 用 x4、否则 x2;也可手动锁 x2/x4)、relay_detail(Flash 解码细节强度 0~1,默认 1.0)。
  • 后处理:本插件的光流时域 pass 对该引擎自动跳过(模型自带时序一致性);detail / softness / face_restore 仍可叠加。
  • 倍率换算:权重原生倍率与 scale 不一致时(如只有 x4 权重但要 2 倍),解码后 bicubic 精确缩放到目标尺寸,不重复推理。

v2.9.4 — 并入官方 NVIDIA RTX VFX 去噪/去模糊档位 / Official RTX VFX DENOISE_/DEBLUR_ tiers merged

  • 新增引擎「NVIDIA RTX VSR - 去噪/去模糊 (VFX)」:与官方 ComfyUI_Nvidia_VFX_Nodes 的 RTXVideoSuperResolution 同源(nvvfx DENOISE_LOW~ULTRA / DEBLUR_LOW~ULTRA,同分辨率处理,无需模型文件)。专属参数 rtx_vfx_op(去噪/去模糊)、rtx_vfx_level(LOW/MEDIUM/HIGH/ULTRA)、rtx_strength(0-1);scale>1 时先同分辨率清理,再自动接 RTX ULTRA 放大到目标倍率(先清理后放大)。引擎不可用时自动降级 SeedVR2,workflow 不中断。

v2.9.3 — DLSS5 本地引擎按安装路径自动发现(修复「未找到 video2dlssnr.exe」)/ Install-path-aware DLSS5 auto-discovery

  • 背景 / Context:用户报节点执行 RuntimeError: [BSAI-H3/DLSS5] 未找到 video2dlssnr.exe。运行时其实已存在于本机另一整合包 G:\Comfyui_BSAI\ComfyUI\models\DLSS5\(4 文件齐全),但插件与 install.py 的本地包扫描只写死了 C:\BSAI\DLSS5,跨盘/跨目录的既有文件发现不了。 The runtime already existed in a sibling pack on another drive, but both the node and install.py only scanned the hard-coded C:\BSAI\DLSS5.
  • 修复 / Fix:查找根改为从插件实际安装路径推导——自动探测同层(及历史 C:\BSAI 树)名称含 comfy/bsai/aki 的兄弟整合包的 ComfyUI/models/DLSS5、models/DLSS5、DLSS5 三种布局(精确拼路径探测,不做全盘遍历);命中 exe 或 zip 即直接使用/自动解包复制。环境变量 VIDEO2DLSSNR_PACK_DIR / VIDEO2DLSSNR_EXE 与旧默认路径保持兼容优先。 Search roots are now derived from the live install path: sibling packs (same level, plus the legacy C:\BSAI tree) are probed at the three known layouts — exact-path checks only, no full-disk walk. Env vars and the legacy default keep working.
  • 文档 / Docs:缺件报错信息升级为中英双语并完整列出 4 个所需文件(exe 0.4MB + nvngx_dlss 56MB + nvngx_dlssnr 158MB + nvngx.dll_dlssnr 13KB)及获取途径;README 新增双语排错章节;install.py 待办提示双语化。 The missing-runtime error is now bilingual with the exact 4-file checklist and sources; README gained a bilingual troubleshooting section; install.py hints are bilingual.

v2.8.1 — UI 布局:自动路由偏好移至模型选择之上

  • auto_prefer / 自动路由偏好 参数从参数区底部移到节点第一栏(模型选择之上):先选档位偏好再看引擎,符合"自动路由"的操作直觉;仅当 model_name = 自动路由 时生效(行为不变)

v2.8.0 — 质量优先档画质重构 + 单帧崩溃修复 + SeedVR2 fp8 路径修复

背景:用户反馈 v2.7.1 按"自动路由/质量优先"处理 507×524 单帧输出画质"不堪入目"(眼/唇细节劣化);手动切 Real-ESRGAN 模型后节点崩溃 AttributeError: 'NoneType' object has no attribute 'shape'。

① 单帧崩溃修复(问题②):根因是 upscale() 仅 Real-ESRGAN 分支在多帧且 cv2 可用时才给 lr_np 赋值,其余引擎分支恒为 None;单帧输入时 temporal_strength=0.2>0 仍进入 _video_temporal_detail → _compute_flow_pairs(None).shape 崩溃。

  • _compute_flow_pairs:lr_np is None 或 shape[0]<2 直接返回 []
  • _video_temporal_detail:单帧/无光流输入自动 temporal_strength=0(跳过 flow)
  • Real-ESRGAN 分支:单帧或无 cv2 时 temporal_strength=0——任何引擎 + 任何输入尺寸都不再崩溃

② 质量优先档画质重构(问题①):本地对照实验(同一张 507×524 原图)实测—— | 路径 | 输出 | 耗时 | Laplacian | |---|---|---|---| | SeedVR2 INT8 8步 cfg1.0(旧默认) | 1048×1014 | 130s | 375 | | SeedVR2 fp8 官方默认(修复后) | 1048×1014 | 84s | 290 |

结论:根因是路由选中 INT8 量化权重 + 8 步低采样(w4a4 量化精度损失在眼唇等细节区最明显,高频被过度强调产生伪影/失真),而非后处理参数。

  • 路由换序:质量优先 = SeedVR2 fp8(精度最高) → INT8 → VOSR → FlashVSR → Real-ESRGAN;fp8 已实测更快(84s vs 130s)且权重精度更高
  • INT8 采样增强:仅当回退到 INT8 时自动覆盖 sv2_steps=16 / sv2_cfg=1.5(补偿量化损失),信息写入 info 输出
  • 人脸自动轻修复:自动检测到人脸时,CodeFormer 保真 0.6→0.45、融合 0.7→0.55(只补细节不改脸型,杜绝"塑料感")
  • HD 增强档防过度锐化:低清输入细节强度上限 1.0→0.6
  • 节点默认值:sv2_steps 8→12、sv2_cfg 1.0→1.2

③ SeedVR2 fp8 路径修复(潜伏 bug):_seedvr2_upscale 从未真正输出放大图——官方插件返回 io.NodeOutput(sample)(.result 为 args 元组),旧解包逻辑误判为非 tensor 直接回退原图。修复为正确解包 NodeOutput.result[0],fp8 路径首次真实可用(此前若被手动选中会"输出尺寸不变")。

实测:24 项单元测试全过(单帧 temporal 防御 / fp8 优先路由 / INT8 采样覆盖 / 人脸轻修复 / HD 档上限 / 节点默认值 / fp8 返回解包);节点级 E2E auto/质量优先 507×524→1048×1014 正常出图。

v2.7.0 — HitPaw 技术路线本地落地:自动路由 + UHD 输入自适应 + 人脸时域稳定

  • 背景:应要求全球调研 HitPaw VikPea 超分技术(官方模型文档 / developer.hitpaw.com API / 官方 OpenClaw skill)。结论:VikPea 为闭源商业软件 + 云端推理,模型权重不可提取;唯一合法接入路径是官方云端 REST API(付费积分、输入须公网 URL、分钟~小时级异步),与本插件"本地帧级批处理 + 离线 + 免费"定位根本冲突 → 采纳其技术理念本地落地(路径 B),对标映射:
    • ultrahd_restore_2x(UHD 超分,高清输入保守细节)→ 输入自适应
    • portrait_restore(多帧融合 + 时空对齐防闪烁)→ 人脸时域稳定
    • VikPea 多模型选择器(General/Animation/Portrait/UHD/Generative)→ 自动路由
  • ① 模型自动路由:新增引擎「自动路由 (按内容/输入推荐)」,零新依赖(只探测已有权重 + 抽样人脸检测):
    • 5 档偏好 auto_prefer / 自动路由偏好:质量优先(SeedVR2 INT8→fp8→VOSR→FlashVSR→Real-ESRGAN 逐级回退)、速度优先、人像优先(强制 CodeFormer 人脸修复)、动漫优先(anime 权重)、UHD 优先
    • 自动内容感知:YOLO 抽样检测到人脸 → 自动开启 CodeFormer 人脸修复 + 时域稳定(无需手动开关)
    • 自动分辨率感知:≥720P 高清输入 → UHD 保守细节;<540P 低清输入 → HD 增强细节
    • 路由决策完整写入 info 输出(引擎/内容/档位全透明)
  • ② UHD 输入自适应:新参数 input_adaptive / 输入自适应(自动/关/UHD 保守档/HD 增强档):≥720P 时细节强度打 6 折(上限 0.35)+ 强制 classic 模式(防过度锐化/伪影)+ 柔和度下限 0.15;<720P 时细节增强 1.2 倍配合 smart 重建。对标 Ultra HD 模型的"自然无数码感"定位
  • ③ 人脸时域稳定:新参数 face_temporal / 人脸时域稳定(默认 0.50,主节点 / 独立 FaceRestore / Topaz FaceRestore 三节点同步):
    • 跟踪增强:IoU 断链时按中心距离 + 尺寸比 gating 续链(快速移动/缩放不再断链重检)
    • 参数级 EMA:每条人脸轨迹的融合强度/保真度做跨帧指数平滑(0=关闭,等同 v2.6 行为;0.5=推荐;1.0=完全跟随历史)——消除"检测框抖动 → 修复强度逐帧跳变"的闪烁,同时保持逐帧像素级恢复(不混合结果像素,规避 v2.3.1 曾出现的鬼影)
  • 实测:22 项单元测试全过(参数 EMA 跨断点抖动跳变 0.0105→0.0053 减半;dist-gate 续链;路由 5 偏好 + 人脸/分辨率感知);端到端 4 帧真实人像(CodeFormer 修复正常、无伪影);主节点完整链路 2 帧 1024×1365→2048×2730 30.3s,auto 路由正确选中引擎 + 自动开人脸修复 + UHD 保守档
  • 兼容性:face_temporal=0 / input_adaptive=关 / 不选自动路由时行为与 v2.6.0 完全一致

v2.6.0 — SeedVR2 7B INT8 (ComfyUI 原生) 引擎 + 模型路径自动加载

  • 背景:用户新下载 models/diffusion_models/seedvr2_7b_int8_convrot.safetensors(Comfy-Org INT8 量化,7.9GB)与 models/vae/seedvr2_ema_vae_fp16.safetensors
  • 兼容性核查结论:VAE 与现有 SEEDVR2/ema_vae_fp16.safetensors 哈希完全一致(同一文件);INT8 权重含 comfy_quant/weight_scale + I8/U8 量化层(288 层),numz 插件加载器无法读取(strict=False 会静默丢权重),但 ComfyUI 原生链(comfy.sd.load_diffusion_model + quant_ops)完整支持(实测识别为 NaDiT 8.24B 全量加载)
  • 新增引擎「SeedVR2 7B INT8 (ComfyUI原生)」:走 ComfyUI 官方 NaDiT + KSampler 采样链,推理流程 1:1 对齐 comfy_extras/nodes_seedvr.py(pad16 + 补帧 4n+1 → VAE tiled encode → conditioning → sample → tiled decode → lab/wavelet/adain 颜色校正)
  • 模型路径自动加载:DIT 自动查找 diffusion_models/seedvr2_7b_int8_convrot.safetensors(INT8 优先)→ diffusion_models/ 其它 seedvr2 → SEEDVR2/ fp8;VAE 自动查找 SEEDVR2/ → vae/seedvr2_ema_vae_fp16.safetensors → vae/ema_vae_fp16.safetensors
  • 新参数:sv2_steps / SeedVR2步数(默认 8)、sv2_cfg / SeedVR2保真度(默认 1.0)、sv2_sampler / SeedVR2采样器、sv2_scheduler / SeedVR2调度器、sv2_color / SeedVR2色彩校正(默认 lab)
  • 工程细节:采样后主动卸载 7B DiT 释放显存,VAE encode/decode 显式 256 tile(避免整张 OOM 回退 32x32 超慢 tile),tiled 阶段包 torch.no_grad()(规避 seedvr tiled_vae 的 inplace 视图冲突)
  • 实测:320×448 2 帧 → 640×896(8 步)32.7s,PSNR 31.0dB vs 双三次(结构完整保留)

v2.5.0 — 结合视频实测优化:VOSR 通道修复 + DLSS5 参数对齐 + VOSR+RTX 组合

  • 依据:B 站《低配必看!VOSR 遇上 DLSS5:如何用超分放大技术白嫖极致画质?》(BV1WBYV6hEXa)实测结论落地
  • DLSS5 默认参数对齐视频实测:color / 色彩 1.0→0.0(视频实测开 1 皮肤油腻)、skin / 皮肤 -1.0→0.0(保留肌理)、detail 保持 1.0(建议 1 或更高)
  • 修复 VOSR 通道必然失败 bug:inference_vosr_onestep.py 不支持 --cfg_scale,现动态检测;修复 shutil 缺失 NameError;修复非方形输入静默失败(自动 reflect 补边成方形 → 推理 → 裁回原比例)
  • 新增 VOSR 2.0 + RTX (视频推荐两级放大) 引擎(新参数 rtx_chain_scale / RTX串联倍率)
  • VOSR 仓库支持 ComfyUI/models/VOSR 路径(VOSR_HOME → models/VOSR → C:\BSAI\VOSR 依次查找)

v2.4.0 — DLSS 5 神经渲染超分引擎 + 2026 最新超分技术全景

  • 新增 DLSS 5 (NVIDIA 神经渲染) 引擎、VOSR 2.0 生成式超分、RTX 硬件超分、FlashVSR/SeedVR2 扩散视频超分、Topaz 商业引擎接入

更早版本

  • 光流时域增强、人脸修复(GFPGAN/CodeFormer + YOLOv8-Face)、批量帧处理、Latent 3D 上采样等