"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "6db33337a49c2f20db1b8d2ad069cca10c552c68"
Commit d199bc62 authored by Patrick von Platen's avatar Patrick von Platen
Browse files

make style

parent 8d314c96
...@@ -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`:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment