-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Update UniPC to support 1D diffusion. #5199
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. |
|
PR looks good to me more or less. Just some tests seem to be failing, could you take a look here @leng-yue ? :-) |
|
Fixed, seems these errors are caused by the latest commit. |
src/diffusers/utils/testing_utils.py
Outdated
| else: | ||
| torch_device = "cuda" if torch.cuda.is_available() else "cpu" | ||
| # torch_device = "cuda" if torch.cuda.is_available() else "cpu" | ||
| torch_device = "cpu" |
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.
We can't do this change I'm afraid
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 was updated by mistake (pushed an incorrect unittest file), fixed.
|
Failing tests are unrelated - merging |
|
Good job @leng-yue ! |
* Update Unipc einsum to support 1D and 3D diffusion. * Add unittest * Update unittest & edge case * Fix unittest * Fix testing_utils.py * Fix unittest file --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Update Unipc einsum to support 1D and 3D diffusion. * Add unittest * Update unittest & edge case * Fix unittest * Fix testing_utils.py * Fix unittest file --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* Update Unipc einsum to support 1D and 3D diffusion. * Add unittest * Update unittest & edge case * Fix unittest * Fix testing_utils.py * Fix unittest file --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
What does this PR do?
Fixes #5198 by updating only the einsum dimensions. This change should also add support for 3D diffusion.
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.