MCPcopy Create free account
hub / github.com/TencentARC/MotionCtrl / shared_step

Method shared_step

lvdm/models/ddpm3d.py:337–340  ·  view source on GitHub ↗
(self, batch)

Source from the content-addressed store, hash-verified

335 return x
336
337 def shared_step(self, batch):
338 x = self.get_input(batch, self.first_stage_key)
339 loss, loss_dict = self(x)
340 return loss, loss_dict
341
342 def training_step(self, batch, batch_idx):
343 loss, loss_dict = self.shared_step(batch)

Callers 2

training_stepMethod · 0.95
validation_stepMethod · 0.95

Calls 1

get_inputMethod · 0.95

Tested by

no test coverage detected