MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / encode

Method encode

code/dc_ldm/models/autoencoder.py:390–393  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

388 self.embed_dim = embed_dim
389
390 def encode(self, x):
391 h = self.encoder(x)
392 h = self.quant_conv(h)
393 return h
394
395 def decode(self, h, force_not_quantize=False):
396 # also go through quantization layer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected