MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / encode

Method encode

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

Source from the content-addressed store, hash-verified

88
89
90 def encode(self, x):
91 h = self.encoder(x)
92 moments = self.quant_conv(h)
93 posterior = DiagonalGaussianDistribution(moments)
94 return posterior
95
96 def decode(self, z):
97 z = self.post_quant_conv(z)

Callers 1

forwardMethod · 0.95

Calls 1

Tested by

no test coverage detected