MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / validation_step

Method validation_step

sat/sgm/models/autoencoder.py:295–300  ·  view source on GitHub ↗
(self, batch: dict, batch_idx: int)

Source from the content-addressed store, hash-verified

293 opt.step()
294
295 def validation_step(self, batch: dict, batch_idx: int) -> Dict:
296 log_dict = self._validation_step(batch, batch_idx)
297 with self.ema_scope():
298 log_dict_ema = self._validation_step(batch, batch_idx, postfix="_ema")
299 log_dict.update(log_dict_ema)
300 return log_dict
301
302 def _validation_step(self, batch: dict, batch_idx: int, postfix: str = "") -> Dict:
303 x = self.get_input(batch)

Callers

nothing calls this directly

Calls 3

_validation_stepMethod · 0.95
ema_scopeMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected