Skip to content

Fix typing inconsistency in Euler discrete scheduler #6052

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

Conversation

iabaldwin
Copy link
Contributor

What does this PR do?

Fixes typing inconsistency in the Euler discrete scheduler. Depending on the interpolation type, sigmas is set to either be a numpy array (interpolation_type == "linear") or a torch tensor (interpolation_type == "log_linear"). This should consistently be a numpy array.

Fixes # (issue)

Before submitting

Who can review?

@yiyixuxu

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

@patrickvonplaten patrickvonplaten merged commit bf7f9b4 into huggingface:main Dec 6, 2023
donhardman pushed a commit to donhardman/diffusers that referenced this pull request Dec 18, 2023
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