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

Method validation_step

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

Source from the content-addressed store, hash-verified

170 return discloss
171
172 def validation_step(self, batch, batch_idx):
173 log_dict = self._validation_step(batch, batch_idx)
174 with self.ema_scope():
175 log_dict_ema = self._validation_step(batch, batch_idx, suffix="_ema")
176 return log_dict
177
178 def _validation_step(self, batch, batch_idx, suffix=""):
179 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