Skip to content

Conversation

@leng-yue
Copy link
Contributor

What does this PR do?

Fixes #5198 by updating only the einsum dimensions. This change should also add support for 3D diffusion.

Before submitting

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.

@HuggingFaceDocBuilderDev

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

@patrickvonplaten
Copy link
Contributor

PR looks good to me more or less. Just some tests seem to be failing, could you take a look here @leng-yue ? :-)

@leng-yue
Copy link
Contributor Author

Fixed, seems these errors are caused by the latest commit.

else:
torch_device = "cuda" if torch.cuda.is_available() else "cpu"
# torch_device = "cuda" if torch.cuda.is_available() else "cpu"
torch_device = "cpu"
Copy link
Contributor

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

Copy link
Contributor Author

@leng-yue leng-yue Oct 2, 2023

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.

@patrickvonplaten
Copy link
Contributor

Failing tests are unrelated - merging

@patrickvonplaten patrickvonplaten merged commit c8b0f0e into huggingface:main Oct 2, 2023
@patrickvonplaten
Copy link
Contributor

Good job @leng-yue !

chuzhdontcode pushed a commit to chuzhdontcode/diffusers that referenced this pull request Oct 4, 2023
* 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>
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* 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>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* 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>
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.

Add 1D diffusion support to UniPC scheduler

3 participants