MCPcopy Create free account
hub / github.com/Sygil-Dev/sygil-webui / encode

Method encode

ldm/models/autoencoder.py:325–328  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

323 self.embed_dim = embed_dim
324
325 def encode(self, x):
326 h = self.encoder(x)
327 h = self.quant_conv(h)
328 return h
329
330 def decode(self, h, force_not_quantize=False):
331 # also go through quantization layer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected