MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / decode

Method decode

sat/sgm/models/autoencoder.py:217–219  ·  view source on GitHub ↗
(self, z: torch.Tensor, **kwargs)

Source from the content-addressed store, hash-verified

215 return z
216
217 def decode(self, z: torch.Tensor, **kwargs) -> torch.Tensor:
218 x = self.decoder(z, **kwargs)
219 return x
220
221 def forward(self, x: torch.Tensor, **additional_decode_kwargs) -> Tuple[torch.Tensor, torch.Tensor, dict]:
222 z, reg_log = self.encode(x, return_reg_log=True)

Callers 6

forwardMethod · 0.95
decode_first_stageMethod · 0.45
decode_latentsFunction · 0.45
decodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected