MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / UNetSpatioTemporalConditionOutput

Class UNetSpatioTemporalConditionOutput

animation/modules/unet.py:21–30  ·  view source on GitHub ↗

The output of [`UNetSpatioTemporalConditionModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_frames, num_channels, height, width)`): The hidden states output conditioned on `encoder_hidden_states` input. Output of last layer of model.

Source from the content-addressed store, hash-verified

19
20@dataclass
21class UNetSpatioTemporalConditionOutput(BaseOutput):
22 """
23 The output of [`UNetSpatioTemporalConditionModel`].
24
25 Args:
26 sample (`torch.FloatTensor` of shape `(batch_size, num_frames, num_channels, height, width)`):
27 The hidden states output conditioned on `encoder_hidden_states` input. Output of last layer of model.
28 """
29
30 sample: torch.FloatTensor = None
31
32
33class UNetSpatioTemporalConditionModel(ModelMixin, ConfigMixin, UNet2DConditionLoadersMixin):

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected