Skip to content

Generalize SEEDS samplers for RF#8529

Merged
comfyanonymous merged 1 commit intoComfy-Org:masterfrom
chaObserv:seeds_rf
Jun 14, 2025
Merged

Generalize SEEDS samplers for RF#8529
comfyanonymous merged 1 commit intoComfy-Org:masterfrom
chaObserv:seeds_rf

Conversation

@chaObserv
Copy link
Contributor

"Sigma" usually refers to two types: the plain sigma and the scaled one, such as (sigma / alpha). RF uses the former so that the SNR-related samplers currently do not capture the alpha signal.

By restoring the VP algorithm to include alpha and computing the actual half-logSNR, SDE samplers may become compatible with RF models. However, starting sigma at 1.0 leads to an invalid logSNR. To avoid this, the first sigma value needs to be offset during sampling. For other model types, this should not change their behavior because the computation of lambda remains the same.

Other changes are refactorings. scale * some.expm1().neg().sqrt() seems more numerically stable.

Tested with SD 3.5 medium, CFG = 3.0.
ComfyUI_seeds_general_grid_00001_

Restore VP algorithm for RF and refactor noise_coeffs and half-logSNR calculations
@comfyanonymous comfyanonymous merged commit 53e8d81 into Comfy-Org:master Jun 14, 2025
5 checks passed
@chaObserv chaObserv deleted the seeds_rf branch June 22, 2025 13:58
adlerfaulkner pushed a commit to LucaLabsInc/ComfyUI that referenced this pull request Oct 16, 2025
Restore VP algorithm for RF and refactor noise_coeffs and half-logSNR calculations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants