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

Method encode_to_prequant

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

Source from the content-addressed store, hash-verified

101 return quant, emb_loss, info
102
103 def encode_to_prequant(self, x):
104 h = self.encoder(x)
105 h = self.quant_conv(h)
106 return h
107
108 def decode(self, quant):
109 quant = self.post_quant_conv(quant)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected