AICG3D H3 最终合成 · 高清成片
Stitch and Upscale in One Node, Because Two Wires Is One Too Many
- final_segment
- video
- saved_file
- seam_report
- upscale_report
AICG3D ships the same finish line twice. Once as two nodes - 最终合成 · 单线成片 handing a packet to 成片高清二采放大 - and once as this one: "AICG3D H3 最终合成 · 高清成片", which takes the last segment of your chain and returns a finished, upscaled, audio-intact film file. Same engine inside. The difference is entirely about how much graph you want to maintain.
If you're a beginner staring at the 13號 workflow wondering which of the four "最终合成"-ish nodes is the one you need: this is the shortest path from segments to a viewable 1080p-ish MP4.
What's happening under the hood
Run it and it does two jobs in sequence. First it frees VRAM - it explicitly unloads the front-end models and cache before assembly rather than hoping ComfyUI's allocator sorts it out. Then it assembles: it walks the upstream segment chain, decodes each segment in order into one encoder (memory tracks one segment, not the film), matches each segment's opening brightness to the previous segment's last frame with a capped additive ramp, and saves the result. Then it unloads again and hands that assembled film, plus the H3 bundle and sampler sigmas it just used, straight into the same HD processor the packed upscale node uses.
So the per-window geometry is identical to the standalone upscaler: max_window_frames (362 ≈ 15s at 24fps), shared window_overlap_frames used purely as context, kept frames taken from the middle of each window, boundary placed at the overlap midpoint, no cross-window blending, and a hard check that the kept frames add up to the input frame count. Inside each window it's latent 3D upscale → low-denoise resample → optional repair → optional RelayVSR → exposure locked back to the untouched source frames.
Audio is handled the way you'd hope: the video is written window by window, concatenated, and the source audio track is stream-copied in at the end. Nothing in the second pass can touch your dialogue or its timing.
Inputs and outputs
Required: final_segment - the last 视频段落 node's segment output, wildcard type so ComfyUI won't type-check it for you - and filename_prefix.
After that it's the whole HD panel, most of it behind show_advanced_settings:
second_pass- latent upscale plus low-denoise resample. This is the part that adds detail.latent_upscale_model- needed wheneversecond_passis on. Placeholder text in the dropdown means the model folder is empty.upscale_mode/upscale_scale/target_width/target_height- 1.5x, or an explicit 1920×1088, or 仅采样修复 to keep the size.second_pass_denoise- 0.28–0.35. Raise it and the resample starts re-inventing faces.repair_engine- 关闭 / SeedVR2 / RTX VSR / VOSR2, applied after the second pass.refiner_lora- one optional LoRA on the second-pass model, fixed at 1.0.relay_vsr_enabled+relay_vsr_model/relay_vsr_vae/relay_vsr_detail- a separate full-film upscale stage, x2 model with x2 VAE or x4 with x4.lock_source_exposureandrelay_lock_source_exposure- both on by default. Don't turn them off unless you're debugging.
The cache_* optional inputs are frontend plumbing for single-segment re-rolls. Ignore them.
Four outputs: video, saved_file, seam_report, upscale_report. Note what's missing compared with the two-node route - there's no final_sequence packet. That's the whole trade-off.
Which one should you wire?
Take this node when you want the film and nothing else. Take 单线成片 + 成片高清二采放大 when you want the assembled film as a reusable object: the packet lets you point the upscaler at it, or run a multi-stage chain (say 1.5x here, then feed the resulting video into a second 1.0x SeedVR2-style repair pass) without redoing assembly. On a long drama where assembly takes minutes and a re-roll costs seconds, that separation is worth two wires.
A nice touch worth knowing: if second_pass is off, repair_engine is 关闭 and relay_vsr_enabled is false, this node doesn't error - it just returns the assembled film and reports "整片高清未启用:已直接输出最终合成视频,未重复采样". So a half-configured node degrades into a plain combine node instead of failing at the end of an hour-long render.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/JGRFW/comfyui-AICG3D
# restart, then Ctrl+F5 in the browser
Or ComfyUI Manager, searching AICG3D / 短剧工作台 / MiniMax H3. The pack installs with zero hard dependencies by design; the root requirements.txt is intentionally empty so Manager doesn't hang. This node does need FFmpeg for writing and muxing, so install the optional bits into ComfyUI's Python:
python -m pip install imageio-ffmpeg
Where people get burned
- Wrong segment. Both this node and 单线成片 want the last link in the chain. Point them at the first and you get a single-segment film that looks suspiciously short.
- Empty upscaler dropdown → "请选择 H3 Latent 3D 放大器模型". Install the H3 latent upscaler checkpoint into
ComfyUI/models/latent_upscale_modelsand restart. Nothing else in the pack will fix it. - Repair engine with no plugin. The error names the missing node and package (
ComfyUI-SeedVR2_VideoUpscaler,comfyui_nvidia_rtx_nodes,ComfyUI-VOSR2). Set the engine back to 关闭 and move on - H3 second pass alone is the main event. - Peak VRAM is higher than you think. Assembly, then upscaling, in one process. If you're near the edge, this is the node that pushes you over; the two-node version lets you unload between the stages.
- Long films feel like a hang. They aren't hanging - it prints a line per window in the console. Watch that before you kill the process.
Inputs (50)
| Name | Type | Default | Description |
|---|---|---|---|
| final_segment | * | 接最后一段的「视频段落」。节点会顺着段落链完成整片拼接,然后再执行所选高清处理。 | |
| filename_prefix | STRING | video/MiniMax_H3_Final_HD | — |
| second_pass | BOOLEAN | true | 开:H3 Latent 3D 放大后,再做低降噪 H3 二次采样。关:只运行下方超分/修复引擎。 |
| refiner_lora | COMBO | none | 可选。只给整片 H3 二采模型叠加一个精修 LoRA,固定强度 1.0;关闭二采时不会加载或应用。选择「无」表示不叠加。 |
| show_advanced_settings | BOOLEAN | false | 关闭时只显示常用二采参数;打开后才显示设备、分块、修复、预览和清理等高级设置。 |
| latent_upscale_model | COMBO | 1 options: (place models in: /tmp/ComfyUI/models/latent_upscale_models) | |
| upscale_mode | COMBO | 按倍数放大 | 按倍数:720P 可乘 1.5;目标分辨率:直接指定 1920×1088;仅采样修复:不改尺寸,只继续低降噪二采。 |
| upscale_scale | FLOAT | 1.501–4 | — |
| target_width | INT | 192064–16384 | — |
| target_height | INT | 108864–16384 | — |
| upscale_device | COMBO | cuda | 2 options: cuda, cpu |
| upscale_precision | COMBO | fp16 | 3 options: fp16, fp32, bf16 |
| sampler_name | COMBO | er_sde | 44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38 |
| scheduler | COMBO | beta | 9 options: simple, sgm_uniform, karras, exponential, ddim_uniform, beta, +3 |
| steps | INT | 41–10000 | H3 二采步数;推荐 4~6 步。 |
| second_pass_denoise | FLOAT | 0.300.05–0.6 | H3 二采重画力度;推荐 0.28~0.35。值越低越保留一采原片,曝光和人物越稳定。 |
| second_pass_seed | INT | 00–18446744073709550000 | 整片固定一个种子;0 = 本次运行随机一次,所有窗口共用该种子。 |
| tiled_sampling | COMBO | 关 | 2 options: 关, 开 |
| tile_width | INT | 51232–16384 | — |
| tile_height | INT | 51232–16384 | — |
| tile_overlap | INT | 12832–16384 | — |
| tile_fade | INT | 320–16384 | — |
| repair_engine | COMBO | 关闭(仅 H3 二采) | 在 H3 二采之后做真实画质修复/超分;插件或模型缺失时会明确提示,默认关闭不报错。 |
| repair_model | COMBO | 自动选择 | 1 options: 自动选择 |
| repair_scale | FLOAT | 1.001–4 | 1.0 = 只修画质不继续放大;需要额外超分再设 1.5 / 2.0。 |
| repair_batch_size | INT | 51–129 | — |
| repair_temporal_overlap | INT | 20–16 | — |
| repair_color_correction | COMBO | lab | 6 options: lab, wavelet, wavelet_adaptive, hsv, adain, none |
| repair_quality | COMBO | ULTRA | 4 options: ULTRA, HIGH, MEDIUM, LOW |
| repair_device | COMBO | cuda | 2 options: cuda, cpu |
| repair_blocks_to_swap | INT | 00–36 | — |
| repair_offload_device | COMBO | cpu | 2 options: cpu, none |
| repair_vae_tiling | BOOLEAN | true | — |
| lock_source_exposure | BOOLEAN | true | 把每帧最终亮度锁定到未处理成片的对应帧,消除分窗二采造成的忽明忽暗;不改变原音轨。 |
| max_window_frames | INT | 36239–1200 | 单次 H3 时间窗口最大帧数。362 帧约 15 秒;更长的成片自动分窗。 |
| window_overlap_frames | INT | 240–120 | 分窗时前后窗口共享的上下文帧数。共享帧只用于上下文,不会混合到成片。 |
| sample_preview | COMBO | 关 | 2 options: 关, 开 |
| preview_interval | INT | 11–1000 | — |
| cleanup_after_run | COMBO | 卸载模型 | 3 options: 卸载模型, 释放缓存, 不处理 |
| relay_vsr_enabled | BOOLEAN | false | 打开后在整片时间窗口内追加 RelayVSR 放大。它与 H3 二采、画质修复相互独立;关闭时不加载 RelayVSR 模型。 |
| relay_vsr_model | COMBO | (未找到 RelayVSR 放大模型) | 选择 RelayVSR 放大模型。模型放在 models/diffusion_models/RelayVSR/;x2 模型必须搭配 x2 Flash VAE,x4 同理。 |
| relay_vsr_vae | COMBO | (未找到 RelayVSR Flash VAE) | 选择 RelayVSR Flash VAE。必须和放大模型同为 x2 或 x4;VAE 放在 models/vae/RelayVSR/。 |
| relay_vsr_detail | FLOAT | 0.500–1 | RelayVSR Flash 解码细节强度;0.5 与参考工作流一致。 |
| relay_lock_source_exposure | BOOLEAN | true | 把 RelayVSR 每帧亮度锁回处理前画面,避免整片超分后曝光漂移。 |
| cache_onlyopt | BOOLEAN | false | — |
| cache_scopeopt | STRING | — | |
| cache_segment_countopt | INT | 00–100000 | — |
| cache_segment_indicesopt | STRING | — | |
| cache_segment_nodesopt | STRING | — | |
| cache_chain_keyopt | STRING | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| video | VIDEO | — |
| saved_file | STRING | — |
| seam_report | STRING | — |
| upscale_report | STRING | — |