4.5 KiB
FunPack Hybrid Euler 2S Sampler
This node outputs a ComfyUI SAMPLER and can also take optional SIGMAS input and output modified SIGMAS for use with CustomSamplerAdvanced / SamplerCustomAdvanced.
Purpose
It is designed as a quality/speed compromise between:
euler_ancestral: fast, reliable, one model evaluation per step- deterministic 2S-style ODE refinement: higher quality, but more expensive because it needs extra evaluations
This sampler keeps classic Euler ancestral for the early "structure building" stage where motion, anatomy and main composition are forming. On the late denoise steps it switches to a deterministic Euler / DPM-Solver++(2S) ODE refinement path where fine detail and cleanup usually matter most.
It can also build an optional paper-style Restart schedule during that late quality stage:
- detect a restart anchor inside the late quality phase
- insert upward sigma jumps back to a higher sigma
- replay the chosen sigma interval one or more times
Unlike the older implementation, Restart is now encoded directly into the outgoing SIGMAS schedule, so the visible schedule passed into SamplerCustomAdvanced is the actual schedule that gets executed.
Recommended wiring
Use this node with SamplerCustomAdvanced or CustomSamplerAdvanced:
- connect your base scheduler output into this node's optional
sigmasinput - connect this node's
sampleroutput into the sampler input - connect this node's
sigmasoutput into the sigmas input
This node is not intended for KSampler.
Parameters
eta: Ancestral stochasticity. 1.0 keeps normal ancestral behavior.
s_noise: Noise multiplier for ancestral noise injection.
high_quality_pct: Fraction of the late denoise steps that switch from Euler ancestral into deterministic quality refinement.
Example: 0.35 means only the last 35% of steps use the ODE refinement path.
correction_blend: Blend between late-step Euler ODE and late-step 2S correction.
0.0= pure late-step Euler ODE1.0= full late-step DPM++(2S)-style correction
restart_steps: Target size of the restarted sigma interval. The node interprets this against the actual late-phase sigma curve and expands the outgoing SIGMAS schedule accordingly.
restart_repeats: How many Restart loops to run. 0 disables Restart.
restart_trigger_pct: Sampling progress point where Restart is triggered. This value is converted into a target sigma inside the late quality phase, then the nearest real sigma in the provided schedule is used as the restart anchor.
restart_noise: Noise strength used when re-noising the latent up to the restart interval's higher sigma.
sigmas: Optional incoming sigma schedule. If connected, the node outputs a restart-expanded sigma schedule that matches the sampler settings. If not connected, the sampler output still works, but there is no schedule for the node to rewrite.
Recommended starting values
eta = 1.0s_noise = 1.0high_quality_pct = 0.30to0.40correction_blend = 1.0restart_repeats = 0for baseline testing
For a first Restart test, try:
high_quality_pct = 0.35correction_blend = 1.0restart_steps = 3restart_repeats = 1restart_trigger_pct = 0.85restart_noise = 1.0
Example: with 8 base sampling steps, restart_steps = 3, and restart_repeats = 1, a normal evenly spaced late schedule will usually expand into a schedule with about 2 extra replay denoise transitions. With custom sigmas, the exact replay step count can shift slightly because Restart is anchored to the real sigma values rather than raw step indices.
Expected behavior
Compared to plain euler_ancestral, this sampler should usually:
- preserve more late-stage detail
- clean up texture and edge quality better
- keep the early motion/anatomy formation more lively
- cost less than running a heavier deterministic solver for the whole schedule
With Restart enabled, it may further improve late cleanup and detail consistency, but it will increase runtime and may be too aggressive for some video workflows if overused.
Because Restart is now represented in the outgoing SIGMAS, the total number of executed transitions should match what the expanded schedule shows in the downstream custom sampler.
Limitation
This node improves the sampler-side quality/speed tradeoff. It does not reduce the underlying cost of CFG++ guidance itself. If the goal becomes specifically "CFG++ quality at lower guidance cost", that likely requires a custom GUIDER, not just a custom SAMPLER.