MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / decode_from_encoder_indices

Method decode_from_encoder_indices

tok/mm_autoencoder.py:45–51  ·  view source on GitHub ↗
(self, indices, args={})

Source from the content-addressed store, hash-verified

43
44 @torch.inference_mode()
45 def decode_from_encoder_indices(self, indices, args={}):
46 # indices -> encoder feats -> ar -> decoder
47 encoder_x = self.encoder.decode_from_bottleneck(indices)
48 ar_indices = self.ar_sample(encoder_x, args)
49 decoder_x = self.decoder.decode_from_bottleneck(ar_indices)
50 x = self.post_process(decoder_x)
51 return x
52
53 def decode_from_vqvae_indices(self, indices):
54 decoder_x = self.decoder.decode_from_bottleneck(indices)

Callers

nothing calls this directly

Calls 3

ar_sampleMethod · 0.95
post_processMethod · 0.95

Tested by

no test coverage detected