Support UniDiffuser model and pipeline#5487
Merged
JunnYu merged 35 commits intoPaddlePaddle:developfrom Apr 24, 2023
Merged
Conversation
|
Thanks for your contribution! |
Codecov Report
@@ Coverage Diff @@
## develop #5487 +/- ##
========================================
Coverage 61.70% 61.70%
========================================
Files 487 487
Lines 68287 68287
========================================
Hits 42135 42135
Misses 26152 26152 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
JunnYu
reviewed
Apr 7, 2023
JunnYu
reviewed
Apr 7, 2023
JunnYu
reviewed
Apr 7, 2023
| return pos_emb | ||
|
|
||
|
|
||
| class Attention(nn.Layer): |
Member
There was a problem hiding this comment.
这应该也可以复用,
只是权重命名和shape发生变化了
JunnYu
reviewed
Apr 7, 2023
| return x | ||
|
|
||
|
|
||
| class Block(nn.Layer): |
Member
There was a problem hiding this comment.
这个加个 DropPath 和 skip_linear 估计就能用了
JunnYu
reviewed
Apr 7, 2023
JunnYu
reviewed
Apr 7, 2023
| sample_text: paddle.Tensor | ||
|
|
||
|
|
||
| class UViTModel(ModelMixin, ConfigMixin): |
Member
There was a problem hiding this comment.
这里应该跟
这个很像,不过这里面没有区分,in_blocks,mid_block,out_bloks,但是里面的模型结构都是 BasicTransformerBlock
JunnYu
reviewed
Apr 7, 2023
JunnYu
reviewed
Apr 7, 2023
JunnYu
reviewed
Apr 7, 2023
8 tasks
Member
|
thu-ml/unidiffuser/text_encoder 和 thu-ml/unidiffuser/image_encoder 权重应该多传了,text里面多了vision的权重,vision里面多了text的权重,下载的时候可能多下载好多 |
Member
JunnYu
reviewed
Apr 12, 2023
JunnYu
reviewed
Apr 12, 2023
Member
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.







PR types
New features
PR changes
Models
Description
UniDiffuser (One Transformer Fits All Distributions in Multi-Modal Diffusion)
Inference
An image of an astronaut floating in space
A living room and dining area with a chandelier
A man standing in front of a bunch of a waterfall
An elephant swimming in the water in the ocean