Let the model take a second look before it commits: Predict-and-Perturb for MiniMax H3 Image
fm_pnp: a ComfyUI sampler made with FlashMind's Sampler Lab (Velvet Horizon Studio), with two schedulers made to go with it, fm_four_pnp and fm_six_pnp. Built for MiniMax H3 Image. No training, no extra models.
The files:
- fm_pnp.py: the sampler.
- fm_four_pnp.py: the 4-step scheduler (8 model calls).
- fm_six_pnp.py: the 6-step scheduler (14 model calls).
Put them in ComfyUI/custom_nodes/ and restart ComfyUI. Then pick fm_pnp as the sampler and fm_four_pnp or fm_six_pnp as the scheduler in KSampler, KSampler (Advanced) or KSamplerSelect. Each file stands alone: no other nodes or packages are needed.
THE PROBLEM
The first few steps decide the big things: the layout, the pose, where everything goes. But that's exactly when the model can see the least, because the picture is still mostly noise. A normal sampler takes that first rough guess and moves straight on, and whatever it decided is now locked in.
THE IDEA
Before moving on from an early step, fm_pnp lets the model look again:
1. it asks the model what the finished picture will look like;
2. it hides that guess under the same amount of noise again, with fresh random noise;
3. it asks again, and repeats.
Each round the picture settles toward what the model finds most convincing, like a painter stepping back from the sketch a few times before starting on the details. Then the step is taken as usual. Only the early steps get this, so the fine detail is left alone.
The idea comes from the paper "Self-Refining Video Sampling" (arXiv 2601.18577), where it's called Predict-and-Perturb.
https://arxiv.org/html/2601.18577v1
WHAT'S INSIDE
- Plain Euler steps with no extra noise: the second looks already bring fresh noise.
- 4 second looks before every step with at least 80% of the starting noise. Never the very first step: at pure noise there's nothing to look at yet.
- Each second look costs one model call. Same seed, same picture.
fm_four_pnp: 1 -> 0.8875 -> 0.75 -> 0.5328 -> 0. On H3 Image's own levels, skipping the first. One step refined: 8 model calls.
fm_six_pnp: 1 -> 0.93 -> 0.85 -> 0.79 -> 0.55 -> 0.42 -> 0. Off H3 Image's own levels (6 steps right on them look overcooked). Two steps refined: 14 model calls.
Both always run their own number of steps, whatever the Steps field says.
OUR TEST
Same prompt (a woman in a black bob with a black net veil, a purple feathered fascinator, a beaded sheer bodice with silver fringe, black opera gloves), same seed, CFG 1, 3584 x 4096, MiniMax H3 Image int8. Every picture costs the same 8 model calls and took about the same time (67-73 s):
fm_pnp + fm_four_pnp: 4 steps + 4 second looks. The cleanest of the five: a neat, even veil that follows the face with no broken strands, smooth natural skin, tidy beadwork that follows the prompt. Also the softest and brightest, with less of the deep shadow the prompt asked for.

lcm, 8 steps (simple): clean but very smooth, almost polished skin, like a retouched beauty shot.

euler, 8 steps: good, but the veil goes wavy across the lower face and the skin is grainier.

sa_solver, 8 steps: the harshest. Blotchy, oily-looking skin, hard contrast, a strand of the net breaking across the nose.

er_sde, 8 steps: crunchy skin that makes her look older, and a busy room behind her instead of a dark studio.

For the same cost, the second looks gave a calmer, more coherent picture: fine, regular details like the net and the beads came out clean where the plain samplers got them wavy or broken.
TIPS
- Change the number of second looks with "refine" in the RECIPE at the top of fm_pnp.py (the paper used 3). Give it a new NAME too and restart ComfyUI.
- More isn't always better: too many second looks make pictures more alike from seed to seed and push the contrast too far.
- To see what it does, run the same seed and scheduler once with euler and once with fm_pnp.







Comments