MCPcopy Create free account
hub / github.com/LTH14/rcg / decode

Method decode

pixel_generator/ldm/models/autoencoder.py:273–281  ·  view source on GitHub ↗
(self, h, force_not_quantize=False)

Source from the content-addressed store, hash-verified

271 return h
272
273 def decode(self, h, force_not_quantize=False):
274 # also go through quantization layer
275 if not force_not_quantize:
276 quant, emb_loss, info = self.quantize(h)
277 else:
278 quant = h
279 quant = self.post_quant_conv(quant)
280 dec = self.decoder(quant)
281 return dec

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected