MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / decode_code

Method decode_code

code/dc_ldm/models/autoencoder.py:233–236  ·  view source on GitHub ↗
(self, code_b)

Source from the content-addressed store, hash-verified

231 return dec
232
233 def decode_code(self, code_b):
234 quant_b = self.quantize.embed_code(code_b)
235 dec = self.decode(quant_b)
236 return dec
237
238 def forward(self, input, return_pred_indices=False):
239 quant, diff, (_,_,ind) = self.encode(input)

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected