MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / decode

Method decode

mGPT/archs/mgpt_vq.py:106–114  ·  view source on GitHub ↗
(self, z: Tensor)

Source from the content-addressed store, hash-verified

104 return code_idx, None
105
106 def decode(self, z: Tensor):
107
108 x_d = self.quantizer.dequantize(z)
109 x_d = x_d.view(1, -1, self.code_dim).permute(0, 2, 1).contiguous()
110
111 # decoder
112 x_decoder = self.decoder(x_d)
113 x_out = self.postprocess(x_decoder)
114 return x_out
115
116
117class Encoder(nn.Module):

Callers 3

forwardMethod · 0.80
val_t2m_forwardMethod · 0.80
val_m2m_forwardMethod · 0.80

Calls 2

postprocessMethod · 0.95
dequantizeMethod · 0.45

Tested by

no test coverage detected