MCPcopy Create free account
hub / github.com/YvanYin/DrivingWorld / decode_code

Method decode_code

modules/tokenizers/vq_model.py:141–144  ·  view source on GitHub ↗
(self, code_b, shape=None, channel_first=True)

Source from the content-addressed store, hash-verified

139 return dec
140
141 def decode_code(self, code_b, shape=None, channel_first=True):
142 quant_b = self.quantize.get_codebook_entry(code_b, shape, channel_first)
143 dec = self.decode(quant_b)
144 return dec
145
146 def forward(self, input):
147 quant, diff, _ = self.encode(input)

Callers 1

z_to_imageMethod · 0.45

Calls 2

decodeMethod · 0.95
get_codebook_entryMethod · 0.80

Tested by

no test coverage detected