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

Method encode

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

Source from the content-addressed store, hash-verified

266 self.embed_dim = embed_dim
267
268 def encode(self, x):
269 h = self.encoder(x)
270 h = self.quant_conv(h)
271 return h
272
273 def decode(self, h, force_not_quantize=False):
274 # also go through quantization layer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected