MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / UNet2DOutput

Class UNet2DOutput

src/diffusers/models/unets/unet_2d.py:28–37  ·  view source on GitHub ↗

The output of [`UNet2DModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`): The hidden states output from the last layer of the model.

Source from the content-addressed store, hash-verified

26
27@dataclass
28class UNet2DOutput(BaseOutput):
29 """
30 The output of [`UNet2DModel`].
31
32 Args:
33 sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`):
34 The hidden states output from the last layer of the model.
35 """
36
37 sample: torch.FloatTensor
38
39
40class UNet2DModel(ModelMixin, ConfigMixin):

Callers 1

forwardMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected