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

Method encode_to_prequant

pixel_generator/ldm/models/autoencoder.py:101–104  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

99 return quant, emb_loss, info
100
101 def encode_to_prequant(self, x):
102 h = self.encoder(x)
103 h = self.quant_conv(h)
104 return h
105
106 def decode(self, quant):
107 quant = self.post_quant_conv(quant)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected