MiniMaxH3 • De-rope Recover
The node that gives you your frame rate back
- images
- baseline
- IMAGE
De-rope is a two-node trick and this is the second half. Prepare slowed your smeared H3 clip down - holding frames so the model had room to draw a spin or a sword arc properly - and you re-rendered that slowed copy at partial denoise. The result is a beautiful clip at the wrong speed and the wrong length, with the same frames repeated two, three, four times in a row.
Recover deletes the duplicates. That's it, and that's the point: it's a frame selection, exact indices, no resampling, no interpolation, no retiming maths. The frames that survive were genuinely rendered at the hot moments, and when you put the original audio back underneath they land on the original clock. It's also where the interesting optional feature lives, so it's worth knowing exactly what that does.
How it works
hold_map is the JSON Prepare emitted - a list of integer holds, one per baseline frame. Recover walks it, computes the start index of each hold group, and keeps exactly the first frame of each group. A hold of 3 contributes one frame; a hold of 1 contributes one frame. Sum of holds is the slowed length, so the arithmetic has to line up or it throws.
No resampling means no ghosting and no softening: what you get back is the second pass's own pixels, picked out. The catch is equally blunt - whatever the second pass failed to draw stays failed.
The baseline / keep_background option
Off by default, and off is the ported Motion Lab behaviour. Turn it on and Recover compares the second pass against your original decoded frames and keeps the original pixels wherever nothing meaningful changed:
baselinetakes the original decode from before Prepare - the original clock, not the held one. Same T, H, W and C as the recovered batch.keep_backgroundbuilds a per-frame mask from baseline motion between neighbouring frames plus spatially coherent recovered-versus-baseline differences, with the median colour shift subtracted so VAE drift and softening don't light up every pixel, then dilates, feathers and takes a three-frame union so the mask doesn't chatter.- If the motion is broad - more than half the frame moving, or a camera move - it bails out and uses the complete second pass for that frame rather than pasting two incompatible scenes together.
That last rule tells you what this is for. Talking heads, locked-off shots, a character moving against a static plate: you get the repaired limb and the baseline's crisp background. A sweeping camera pan: full re-render, because anything else would be nonsense. It's a heuristic, not segmentation or optical flow, and the author says so plainly - it won't recover sharpness during camera motion, and it won't fix a background the second pass reimagined.
Inputs and output
Two required, both non-negotiable. images is the decoded output of your slowed second pass. hold_map is Prepare's output - it's a STRING, and it's wired rather than typed, so you can't paste it in by hand; connect the socket.
Then optionally baseline (the original decode) and keep_background (the boolean above). One output, IMAGE, on the original clock and length.
Wire it straight into your exporter:
Prepare.latent -> sampler -> VAEDecode -> Recover.images
Prepare.hold_map ------------------------> Recover.hold_map
baseline VAEDecode ----------------------> Recover.baseline (optional)
Recover.IMAGE + ORIGINAL audio ---------> Enhanced Video Combine
Note the audio. Recover has no audio socket and does no audio processing at all - by design. The correct soundtrack is the untouched baseline audio, because the slowed pass was only ever a way of getting better pixels. Mux the original track back on at the exporter and the timing matches, since Recover preserved the frame count exactly.
Install
ComfyUI Manager, search DaSiWa-Nodes, or:
cd ComfyUI/custom_nodes
git clone https://github.com/darksidewalker/ComfyUI-DaSiWa-Nodes
cd ComfyUI-DaSiWa-Nodes
pip install -r requirements.txt
Restart; the pair lives under DaSiWa / MiniMax H3. No models to download - the de-rope pair is pure algorithm on latents and frames, wanting no checkpoint, no LoRA and no upscaler.
Where people get burned
Shape mismatch with keep_background on. The node validates hard: both batches must be floating RGB or RGBA images, finite and inside 0–1, and identical T, H, W, C. Missing or mismatched baseline is an error, not a fallback. And the baseline must be the original-length decode - passing the held second-pass frames is the classic mistake.
"hold map covers N frames, the batch has M". Your images batch length doesn't match what Prepare planned. Usual causes: you decoded a different sampler run, you appended frames downstream, or you edited the clip between the two nodes. Prepare's report output prints the planned frame counts, so read it before you start guessing.
It's slow in a way you won't expect. With keep_background on, the compositing runs on CPU, frame by frame, with interruption checks. A few hundred frames is not instant. The log line afterwards - raw versus feathered mask coverage, and the broad-motion fallback count - is genuinely worth reading: a high fallback count means the feature isn't doing anything for you on this shot and you should just leave it off.
Expecting it to fix everything. If the second pass never had room to draw the motion - wrong inject fraction, a turbo LoRA at full distilled steps - you get a clean edit of a bad render. De-rope quality is decided in Prepare; this node just removes the scaffolding.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| hold_map | STRING | — | |
| baselineopt | IMAGE | — | |
| keep_backgroundopt | BOOLEAN | false | Preserve static baseline detail; motion/changed regions use de-rope. Broad motion uses the complete second pass. Off is exact legacy recovery. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |