-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Added support to create asymmetrical U-Net structures #5400
Merged
Merged
Changes from 31 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
b8dca9f
Added args, kwargs to ```U
Gothos 577d1e2
Add UNetMidBlock2D as a supported mid block type
Gothos 2c8d804
Fix extra init input for UNetMidBlock2D, change allowed types for Mid…
Gothos e07c615
Update unet_2d_condition.py
Gothos 8344b2d
Update unet_2d_condition.py
Gothos 025b1ec
Update unet_2d_condition.py
Gothos 6230214
Update unet_2d_condition.py
Gothos 80b891b
Update unet_2d_condition.py
Gothos c4e4d40
Update unet_2d_condition.py
Gothos 6176fd5
Update unet_2d_condition.py
Gothos 73737f8
Update unet_2d_condition.py
Gothos bc53a32
Update unet_2d_blocks.py
Gothos 314730b
Update unet_2d_blocks.py
Gothos 545a0b0
Update unet_2d_blocks.py
Gothos bf77268
Update unet_2d_condition.py
Gothos 1998c17
Update unet_2d_blocks.py
Gothos 81d682e
Updated docstring, increased check strictness
Gothos 93ce7d3
Add basic shape-check test for asymmetrical unets
Gothos e6b937c
Update src/diffusers/models/unet_2d_blocks.py
Gothos 3cf5e20
Merge branch 'main' into main
sayakpaul 0e9f6f4
Update unet_2d_condition.py
Gothos a91d085
Update unet_2d_condition.py
Gothos d75f203
Fixed docstring and wrong default value
Gothos 4cf629b
Merge branch 'main' into main
Gothos 97c47b6
Reformat with black
Gothos 7695566
Merge branch 'main' into main
Gothos b3bf008
Merge branch 'main' into main
Gothos 196ab3e
Reformat with necessary commands
Gothos a65ec27
Merge branch 'huggingface:main' into main
Gothos bbebc23
Add UNetMidBlockFlat to versatile_diffusion/modeling_text_unet.py to …
Gothos b6c0ff6
Merge branch 'main' into main
sayakpaul 0a73108
Removed args, kwargs, use on mid-block type
Gothos 950d969
Merge remote-tracking branch 'refs/remotes/origin/main'
Gothos bfbf85c
Make fix-copies
Gothos 8389a85
Update src/diffusers/models/unet_2d_condition.py
Gothos 252ca85
make fix-copies
Gothos 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
This file contains 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 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 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.
Is this really needed?
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.
Can we remove this, I don't see exactly how this is required here
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.
These lines make the *args, **kwargs necessary. I'll go by the style elsewhere and use the
has attention
attribute insteadThere 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.
Would following your suggestion above and then doing this work, @patrickvonplaten?
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 sounds good to me!
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.
All right, I'll commit the changes. Just wanted to check once.