MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / validation_step

Method validation_step

ldm/models/autoencoder.py:138–142  ·  view source on GitHub ↗
(self, batch, batch_idx)

Source from the content-addressed store, hash-verified

136 return discloss
137
138 def validation_step(self, batch, batch_idx):
139 log_dict = self._validation_step(batch, batch_idx)
140 with self.ema_scope():
141 log_dict_ema = self._validation_step(batch, batch_idx, postfix="_ema")
142 return log_dict
143
144 def _validation_step(self, batch, batch_idx, postfix=""):
145 inputs = 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