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

Method encode

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

Source from the content-addressed store, hash-verified

103 self.model_ema(self)
104
105 def encode(self, x):
106 h = self.encoder(x)
107 h = self.quant_conv(h)
108 quant, emb_loss, info = self.quantize(h)
109 return quant, emb_loss, info
110
111 def encode_to_prequant(self, x):
112 h = self.encoder(x)

Callers 12

forwardMethod · 0.95
textual_inversionFunction · 0.45
flagMethod · 0.45
test_loggerFunction · 0.45
stable_hordeFunction · 0.45
mainFunction · 0.45
encode_first_stageMethod · 0.45
encode_first_stageMethod · 0.45
textual_inversionFunction · 0.45
stable_hordeFunction · 0.45

Calls 1

quantizeMethod · 0.80

Tested by 1

test_loggerFunction · 0.36