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

Method decode

code/dc_ldm/models/autoencoder.py:395–403  ·  view source on GitHub ↗
(self, h, force_not_quantize=False)

Source from the content-addressed store, hash-verified

393 return h
394
395 def decode(self, h, force_not_quantize=False):
396 # also go through quantization layer
397 if not force_not_quantize:
398 quant, emb_loss, info = self.quantize(h)
399 else:
400 quant = h
401 quant = self.post_quant_conv(quant)
402 dec = self.decoder(quant)
403 return dec
404
405
406class AutoencoderKL(pl.LightningModule):

Callers

nothing calls this directly

Calls 1

quantizeMethod · 0.80

Tested by

no test coverage detected