MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / forward

Method forward

code/dc_ldm/models/autoencoder.py:238–243  ·  view source on GitHub ↗
(self, input, return_pred_indices=False)

Source from the content-addressed store, hash-verified

236 return dec
237
238 def forward(self, input, return_pred_indices=False):
239 quant, diff, (_,_,ind) = self.encode(input)
240 dec = self.decode(quant)
241 if return_pred_indices:
242 return dec, diff, ind
243 return dec, diff
244
245 def get_input(self, batch, k):
246 x = batch[k]

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.95
decodeMethod · 0.95

Tested by

no test coverage detected