-
Notifications
You must be signed in to change notification settings - Fork 6.2k
[WIP] Wan2.2 #12004
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
Merged
[WIP] Wan2.2 #12004
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7ba78d5
support wan 2.2 i2v
yiyixuxu f5da83c
add t2v + vae2.2
yiyixuxu 95a55f9
add conversion script for vae 2.2
yiyixuxu bf2c6e0
add
yiyixuxu 27ce75b
add 5b t2v
yiyixuxu 5709f7e
conversion script
yiyixuxu 0ab2e4f
refactor out reearrange
yiyixuxu e78a4fa
remove a copied from in skyreels
yiyixuxu 97675c7
Apply suggestions from code review
yiyixuxu 6bb1677
Update src/diffusers/models/transformers/transformer_wan.py
yiyixuxu 1ff7c99
fix fast tests
yiyixuxu c0af998
Merge branch 'wan2.2' of github.com:huggingface/diffusers into wan2.2
yiyixuxu 4fd0333
style
yiyixuxu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
440 changes: 399 additions & 41 deletions
440
src/diffusers/models/autoencoders/autoencoder_kl_wan.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Same comment as VAE, ideally this should be in separate transformer implementation,
transformer_wan_2_2.py
, if we want to adopt single file properlyThere 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.
sounds good
I think vae can have its own class, feel free to refactor it if you prefer!
transformer change is really minimum and we could refactor further so it only a single code path, i.e. we just need to always expand timesteps inputs to be 2d. ( I did not have time to test it out so I kept if else here)