MCPcopy Create free account
hub / github.com/IceClear/StableSR / decode_code

Method decode_code

ldm/models/autoencoder.py:120–123  ·  view source on GitHub ↗
(self, code_b)

Source from the content-addressed store, hash-verified

118 return dec
119
120 def decode_code(self, code_b):
121 quant_b = self.quantize.embed_code(code_b)
122 dec = self.decode(quant_b)
123 return dec
124
125 def forward(self, input, return_pred_indices=False):
126 quant, diff, (_,_,ind) = self.encode(input)

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected