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

add v prediction #1386

Merged
merged 7 commits into from
Nov 24, 2022
Merged

add v prediction #1386

merged 7 commits into from
Nov 24, 2022

Conversation

patil-suraj
Copy link
Contributor

@patil-suraj patil-suraj commented Nov 24, 2022

This PR adds v-prediction for DDIM and Euler scheduler.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 24, 2022

The documentation is not available anymore as the PR was closed or merged.

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.

PR looks good, let's just make sure epsilon does not have the wrong dtype and device

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

LGTM! Same comments as @patrickvonplaten regarding setting eps seemingly unnecessarily.

We'll need sample prediction type for Euler to support k-upscaler, but we can add it later.

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.

Nice!

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

Cool!

src/diffusers/schedulers/scheduling_euler_discrete.py Outdated Show resolved Hide resolved
patil-suraj and others added 2 commits November 24, 2022 12:16
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
@patil-suraj patil-suraj merged commit 30f6f44 into main Nov 24, 2022
gabsoftware added a commit to gabsoftware/diffusers-nsfw that referenced this pull request Nov 24, 2022
@anton-l anton-l deleted the v-schedulers branch December 9, 2022 14:52
sliard pushed a commit to sliard/diffusers that referenced this pull request Dec 21, 2022
* add v prediction

* adat euler for v pred

* velocity -> v_prediction

* simplify

* fix naming

* Update src/diffusers/schedulers/scheduling_euler_discrete.py

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>

* style

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* add v prediction

* adat euler for v pred

* velocity -> v_prediction

* simplify

* fix naming

* Update src/diffusers/schedulers/scheduling_euler_discrete.py

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>

* style

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
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.

None yet

4 participants