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

Method decode_code

tok/ar_dtok/vqvae.py:92–95  ·  view source on GitHub ↗
(self, code_b, shape=None, channel_first=True)

Source from the content-addressed store, hash-verified

90 return dec
91
92 def decode_code(self, code_b, shape=None, channel_first=True):
93 quant_b = self.quantize.get_codebook_entry(code_b, shape, channel_first)
94 dec = self.decode(quant_b)
95 return dec
96
97 def forward(self, input):
98 quant, diff, _ = self.encode(input)

Callers 1

Calls 2

decodeMethod · 0.95
get_codebook_entryMethod · 0.45

Tested by

no test coverage detected