MCPcopy
hub / github.com/FoundationVision/LlamaGen / decode

Method decode

tokenizer/vqgan/model.py:75–78  ·  view source on GitHub ↗
(self, quant)

Source from the content-addressed store, hash-verified

73 return quant, emb_loss, info
74
75 def decode(self, quant):
76 quant = self.post_quant_conv(quant)
77 dec = self.decoder(quant)
78 return dec
79
80 def decode_code(self, code_b, shape, channel_first=True):
81 quant_b = self.quantize.get_codebook_entry(code_b, shape, channel_first)

Callers 6

decode_codeMethod · 0.95
forwardMethod · 0.95
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected