MCPcopy Index your code
hub / github.com/VisionXLab/OF-Diff / shared_step

Method shared_step

ldm/models/diffusion/ddpm.py:434–437  ·  view source on GitHub ↗
(self, batch)

Source from the content-addressed store, hash-verified

432 return x
433
434 def shared_step(self, batch):
435 x = self.get_input(batch, self.first_stage_key)
436 loss, loss_dict = self(x)
437 return loss, loss_dict
438
439 def training_step(self, batch, batch_idx):
440 for k in self.ucg_training:

Callers 2

training_stepMethod · 0.95
validation_stepMethod · 0.95

Calls 1

get_inputMethod · 0.95

Tested by

no test coverage detected