A tiny standalone extension for
sd-webui-forge-classic (Neo branch)
that adds the beta57 sigma scheduler from
RES4LYF.
Registers a single extra entry in the Schedule type dropdown:
| Name | Label |
|---|---|
beta57 |
Beta57 (RES4LYF) |
beta57 is the Beta-distribution-PPF sigma schedule with alpha = 0.5
and beta = 0.7 hard-pinned at the RES4LYF defaults. The math is the
same family as forge-neo's built-in Beta scheduler — the only
difference is that the built-in Beta reads alpha / beta from
shared.opts.beta_dist_alpha / beta_dist_beta, while this one keeps
them fixed regardless of UI option changes so the curve is stable
across sessions.
Reference: RES4LYF/sigmas.py line 1421 calls
comfy.samplers.beta_scheduler(model_sampling, total_steps, alpha=0.5, beta=0.7).
Whenever the upstream RES4LYF docs / workflows pick beta57 — i.e.
with the RES / DEIS samplers, especially on flow / rectified-flow
models (SD3.5, Flux, Wan, ANIMA, etc.). On these models beta57
tends to give better detail and prompt adherence than the standard
karras / exponential / simple schedules because it spends more
steps in the mid-sigma range where the velocity field changes most.
It also works fine with any of forge-neo's stock samplers (Euler, DPM++, Res Multistep, …). It's just a sigma curve.
-
Unzip into your forge-neo
extensions/directory:<your-forge-neo>/extensions/sd-forge-beta57/ <your-forge-neo>/extensions/sd-forge-beta57/scripts/beta57.py -
Restart the WebUI. Pick
Beta57 (RES4LYF)from the Schedule type dropdown.
This extension does only the scheduler. It does not vendor any
other RES4LYF code, does not add RES / DEIS samplers, does not touch
the model or attention layers. If you want the samplers as well, use
the larger sd-forge-res4lyf extension instead.
- Pure scheduler code — has no opinion about the sampler, model
architecture (epsilon / v / flow), or any of forge-neo's runtime
flags (
--sage, int8, torch.compile, etc.). - Skips registration cleanly if a scheduler named
beta57is already present (e.g. becausesd-forge-res4lyfis also installed). - Dependencies:
numpyandscipy, both of which the WebUI already uses for the built-inBetascheduler.
Apache-2.0. The scheduler implementation mirrors RES4LYF (Apache-2.0)
and forge-neo's beta_scheduler (AGPL-3.0 for the upstream
A1111-derived code); this extension distributes only the small
re-implementation in scripts/beta57.py under Apache-2.0.
beta57curve choice: ClownsharkBatwing / RES4LYF (Apache-2.0)- Underlying Beta-PPF formulation: "Beta Sampling is All You Need" — Lee et al., 2024 (arXiv:2407.12173)