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

Method decode_code

tokenizer/vqgan/model.py:80–83  ·  view source on GitHub ↗
(self, code_b, shape, channel_first=True)

Source from the content-addressed store, hash-verified

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)
82 dec = self.decode(quant_b)
83 return dec
84
85 def forward(self, input):
86 quant, diff, _ = self.encode(input)

Callers 9

mainFunction · 0.95
inferFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

decodeMethod · 0.95
get_codebook_entryMethod · 0.45

Tested by

no test coverage detected