Skip to content

Conversation

@daniandtheweb
Copy link
Contributor

@daniandtheweb daniandtheweb commented Dec 23, 2025

This is a possible fix for #1130.

This PR creates a safeguard that detects whenever a sigma_min gets too close to zero and avoids the issues that may come with it (black images).
This also adds a fix and cleans up the KL Optimal scheduler function.

I've noticed this issue on the Karras and the KL Optimal schedulers with this same model: HassakuXL 3.2.

@daniandtheweb daniandtheweb changed the title fix: fix kl_optimal when sigma_min is 0 fix: fix kl_optimal when sigma_min is almost 0 Dec 23, 2025
@daniandtheweb daniandtheweb changed the title fix: fix kl_optimal when sigma_min is almost 0 fix: fix schedulers when sigma_min gets too close to zero Dec 23, 2025
@daniandtheweb daniandtheweb changed the title fix: fix schedulers when sigma_min gets too close to zero fix: avoid issues when sigma_min is close to 0 Dec 23, 2025
@daniandtheweb daniandtheweb marked this pull request as draft December 25, 2025 18:36
@daniandtheweb
Copy link
Contributor Author

This still doesn't seem to be 100% reliable.

@daniandtheweb daniandtheweb marked this pull request as ready for review December 25, 2025 19:04
@daniandtheweb
Copy link
Contributor Author

This new change seems to be more reliable.

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.

1 participant