MCPcopy Create free account
hub / github.com/AlayaLab/Hive / VQEncoderOutput

Class VQEncoderOutput

models/flowsep/diffusers/models/vq_model.py:27–36  ·  view source on GitHub ↗

Output of VQModel encoding method. Args: latents (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`): Encoded output sample of the model. Output of the last layer of the model.

Source from the content-addressed store, hash-verified

25
26@dataclass
27class VQEncoderOutput(BaseOutput):
28 """
29 Output of VQModel encoding method.
30
31 Args:
32 latents (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`):
33 Encoded output sample of the model. Output of the last layer of the model.
34 """
35
36 latents: torch.FloatTensor
37
38
39class VQModel(ModelMixin, ConfigMixin):

Callers 1

encodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected