Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
d199bc62
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "6db33337a49c2f20db1b8d2ad069cca10c552c68"
Commit
d199bc62
authored
Oct 09, 2023
by
Patrick von Platen
Browse files
make style
parent
8d314c96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py
...users/pipelines/versatile_diffusion/modeling_text_unet.py
+7
-2
No files found.
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py
View file @
d199bc62
...
@@ -1016,9 +1016,9 @@ class UNetFlatConditionModel(ModelMixin, ConfigMixin):
...
@@ -1016,9 +1016,9 @@ class UNetFlatConditionModel(ModelMixin, ConfigMixin):
A kwargs dictionary containing additional embeddings that if specified are added to the embeddings that
A kwargs dictionary containing additional embeddings that if specified are added to the embeddings that
are passed along to the UNet blocks.
are passed along to the UNet blocks.
down_block_additional_residuals: (`tuple` of `torch.Tensor`, *optional*):
down_block_additional_residuals: (`tuple` of `torch.Tensor`, *optional*):
A tuple of tensors that if specified are added to the residuals of down blocks.
A tuple of tensors that if specified are added to the residuals of down
unet
blocks.
mid_block_additional_residual: (`torch.Tensor`, *optional*):
mid_block_additional_residual: (`torch.Tensor`, *optional*):
A tensor that if specified is added to the residual of the middle block.
A tensor that if specified is added to the residual of the middle
unet
block.
encoder_attention_mask (`torch.Tensor`):
encoder_attention_mask (`torch.Tensor`):
A cross-attention mask of shape `(batch, sequence_length)` is applied to `encoder_hidden_states`. If
A cross-attention mask of shape `(batch, sequence_length)` is applied to `encoder_hidden_states`. If
`True` the mask is kept, otherwise if `False` it is discarded. Mask will be converted into a bias,
`True` the mask is kept, otherwise if `False` it is discarded. Mask will be converted into a bias,
...
@@ -1026,6 +1026,11 @@ class UNetFlatConditionModel(ModelMixin, ConfigMixin):
...
@@ -1026,6 +1026,11 @@ class UNetFlatConditionModel(ModelMixin, ConfigMixin):
return_dict (`bool`, *optional*, defaults to `True`):
return_dict (`bool`, *optional*, defaults to `True`):
Whether or not to return a [`~models.unet_2d_condition.UNet2DConditionOutput`] instead of a plain
Whether or not to return a [`~models.unet_2d_condition.UNet2DConditionOutput`] instead of a plain
tuple.
tuple.
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttnProcessor`].
added_cond_kwargs: (`dict`, *optional*):
A kwargs dictionary containin additional embeddings that if specified are added to the embeddings that
are passed along to the UNet blocks.
Returns:
Returns:
[`~models.unet_2d_condition.UNet2DConditionOutput`] or `tuple`:
[`~models.unet_2d_condition.UNet2DConditionOutput`] or `tuple`:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment