MCPcopy Create free account
hub / github.com/DreamEditBenchTeam/DreamEdit / decode_code

Method decode_code

src/ldm/models/autoencoder.py:112–115  ·  view source on GitHub ↗
(self, code_b)

Source from the content-addressed store, hash-verified

110 return dec
111
112 def decode_code(self, code_b):
113 quant_b = self.quantize.embed_code(code_b)
114 dec = self.decode(quant_b)
115 return dec
116
117 def forward(self, input, return_pred_indices=False):
118 quant, diff, (_,_,ind) = self.encode(input)

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected