MCPcopy Create free account
hub / github.com/MegaScenes/nvs / encode

Method encode

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected