Skip to content

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.

3 participants