Skip to content

[schedulers] create self.sigmas during __init__ #6006

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

Merged
merged 7 commits into from
Dec 1, 2023
Merged

Conversation

yiyixuxu
Copy link
Collaborator

@yiyixuxu yiyixuxu commented Nov 30, 2023

fix this #5981

we refactored add_noise method to calculate based on sigmas in #5158, but self.sigmas is only created when you run set_timesteps()

this will cause error when the add_noise method is used without set_timesteps(), i.e. typical when used in training. In this PR we will create self.sigmas during __init__.

@yiyixuxu yiyixuxu merged commit 1b6c7ea into main Dec 1, 2023
@yiyixuxu yiyixuxu deleted the scheduler-sigmas branch December 1, 2023 17:15
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
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