Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite while loop being possible in ddim_scheduler #2751

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

Kosinkadink
Copy link
Collaborator

@Kosinkadink Kosinkadink commented Feb 9, 2024

If ddim_scheduler is ever called on a model whose model_sampling sigmas contain less sigmas than the requested steps, the current code will result in an infinite while loop due to ss being set to 0.

This PR makes sure ss will be at least 1 to prevent ComfyUI from hanging forever.

@comfyanonymous comfyanonymous merged commit f44225f into comfyanonymous:master Feb 10, 2024
1 check passed
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