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

Method validation_step

code/dc_ldm/models/autoencoder.py:285–289  ·  view source on GitHub ↗
(self, batch, batch_idx)

Source from the content-addressed store, hash-verified

283 return discloss
284
285 def validation_step(self, batch, batch_idx):
286 log_dict = self._validation_step(batch, batch_idx)
287 with self.ema_scope():
288 log_dict_ema = self._validation_step(batch, batch_idx, suffix="_ema")
289 return log_dict
290
291 def _validation_step(self, batch, batch_idx, suffix=""):
292 x = self.get_input(batch, self.image_key)

Callers

nothing calls this directly

Calls 2

_validation_stepMethod · 0.95
ema_scopeMethod · 0.95

Tested by

no test coverage detected