Skip to content

Commit 23b128e

Browse files
Apply style fixes
1 parent bdc44c1 commit 23b128e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/diffusers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@
198198
"UNet1DModel",
199199
"UNet2DConditionModel",
200200
"UNet2DModel",
201-
"UNet3DModel",
202201
"UNet3DConditionModel",
202+
"UNet3DModel",
203203
"UNetControlNetXSModel",
204204
"UNetMotionModel",
205205
"UNetSpatioTemporalConditionModel",

src/diffusers/models/unets/unet_3d.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ class UNet3DOutput(BaseOutput):
5050

5151
class UNet3DModel(ModelMixin, ConfigMixin):
5252
r"""
53-
A 3D UNet model that takes a noisy sample, and a timestep and returns a sample
54-
shaped output.
53+
A 3D UNet model that takes a noisy sample, and a timestep and returns a sample shaped output.
5554
5655
This model inherits from [`ModelMixin`]. Check the superclass documentation for it's generic methods implemented
5756
for all models (such as downloading or saving).
@@ -289,15 +288,14 @@ def forward(
289288
mid_block_additional_residual: (`torch.Tensor`, *optional*):
290289
A tensor that if specified is added to the residual of the middle unet block.
291290
return_dict (`bool`, *optional*, defaults to `True`):
292-
Whether or not to return a [`~models.unets.unet_3d_condition.UNet3DOutput`] instead of a plain
293-
tuple.
291+
Whether or not to return a [`~models.unets.unet_3d_condition.UNet3DOutput`] instead of a plain tuple.
294292
cross_attention_kwargs (`dict`, *optional*):
295293
A kwargs dictionary that if specified is passed along to the [`AttnProcessor`].
296294
297295
Returns:
298296
[`~models.unets.unet_3d_condition.UNet3DOutput`] or `tuple`:
299-
If `return_dict` is True, an [`~models.unets.unet_3d_condition.UNet3DOutput`] is returned,
300-
otherwise a `tuple` is returned where the first element is the sample tensor.
297+
If `return_dict` is True, an [`~models.unets.unet_3d_condition.UNet3DOutput`] is returned, otherwise a
298+
`tuple` is returned where the first element is the sample tensor.
301299
"""
302300
# By default samples have to be AT least a multiple of the overall upsampling factor.
303301
# The overall upsampling factor is equal to 2 ** (# num of upsampling layears).

0 commit comments

Comments
 (0)