-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Fix DDIM for eta>0 and a cpu generator #1215
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
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
| generator = torch.manual_seed(0) | ||
| # set eta > 0 to test the variance noise generation | ||
| image = ddim(generator=generator, eta=1.0, num_inference_steps=2, output_type="numpy").images | ||
| image_slice = image[0, -3:, -3:, -1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests fails with a device mismatch without the proposed change
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
patil-suraj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
|
MPS tests fail, do you want me to take a look? |
|
@pcuenca yeah, I think those accumulated over the past two days 😅 |
Co-authored-by: Suraj Patil <[email protected]>
|
Superseded by #1222 |
Follow-up to #1189
Allows DDIM to still be used with a cpu generator and eta>0 in
DDIMPipeline