@@ -50,8 +50,7 @@ class UNet3DOutput(BaseOutput):
5050
5151class 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