H3 Side-by-Side Chain Swaps Characters Without a LoRA

ComfyUI Wikinews

Two ComfyUI workflows that swap a character in MiniMax H3 video by pinning the source in a side-by-side canvas. No character LoRA, no length limit.

H3 Side-by-Side Chain is a pair of ComfyUI workflows that swap the character in a real clip with MiniMax H3, without a character LoRA, without Viggle and without masking the person. The source video is pinned in the top strip of the canvas, H3 draws the swapped character underneath it, and each piece continues from the previous piece's saved latent, so a clip can run as long as you keep feeding it prompts.

Source footageAfter the swap
Original game footageSwapped character

One canvas, one mask

The graph works on a 1472x1280 canvas. The original video sits in the top strip, and the noise mask is black (0) there so H3 keeps it exactly as is. The bottom strip starts as white noise and H3 paints the swapped character there, copying motion, timing and camera from the pinned side. The top strip can be much smaller than the rendered side (788x444 in the example), so most of the resolution goes to the new video; only the bottom is cropped out at the end.

Canvas, mask and final crop

The prompt describes the whole frame, both strips, with timestamps, so it is most of the work. Sampling is LCM at 6 steps with manual sigmas and no CFG.

Left: the original footage. Right: the swap, rendered on one RTX 5070 Ti.

Chaining into a long take

Each piece starts with the last 22 frames of the piece before, copied from its real latent through Geiru Context rather than from decoded video, so the joins have no colour seams. Geiru Keystone and Keystone Attention pull every piece toward piece 1's first frame, which keeps a long chain from getting darker.

How the pieces chain

In the ENDLESS workflow you set the piece number to 1 and run; the latent is saved to output/<CHAIN FOLDER>/clip_00001.safetensors, you change the prompt for the next part of the source, and run again. Frames per piece must be 17n + 5 (192 frames is 8 seconds) and stay the same across a chain. The 3-piece demo does the same row three times in one graph and joins the result.

The 22.9 s three-piece demo, rendered in three runs of 192 to 209 frames at 1472x1280.

Requirements

Install Video Helper Suite, KJNodes and the Geiru Context Suite, which needs its PR #10 (merged 2026-12-01); without it the original side gets redrawn from piece 2 on. On the model side the author uses an H3 pruned int8 ConvRot checkpoint, the Pika H3 Flex turbo LoRA, the Qwen3-VL 32B int8 text encoder and the int8 video VAE.

16 GB of VRAM is the floor: KJ Chunk FeedForward plus Low VRAM Attention with head_chunks 14, which Keystone Attention follows. On a 5070 Ti the three demo pieces took 44 minutes including model loading, and ENDLESS runs about 10 to 16 minutes per piece because each run reloads the models. Sage attention on the dense steps is roughly 3x plain attention.

Downloads

Repository, notes and example inputs · Workflow screenshots

Comments

Sign in with GitHub to join the discussion.

Loading comments…
H3 Side-by-Side Chain Swaps Characters Without a LoRA | ComfyUI Wiki