MCPcopy Create free account
hub / github.com/G-1nOnly/AniSDF / on_predict_batch_start

Method on_predict_batch_start

systems/base.py:69–72  ·  view source on GitHub ↗
(self, batch, batch_idx, dataloader_idx)

Source from the content-addressed store, hash-verified

67 update_module_step(self.model, self.current_epoch, self.global_step)
68
69 def on_predict_batch_start(self, batch, batch_idx, dataloader_idx):
70 self.dataset = self.trainer.datamodule.predict_dataloader().dataset
71 self.preprocess_data(batch, 'predict')
72 update_module_step(self.model, self.current_epoch, self.global_step)
73
74 def training_step(self, batch, batch_idx):
75 raise NotImplementedError

Callers

nothing calls this directly

Calls 3

preprocess_dataMethod · 0.95
update_module_stepFunction · 0.90
predict_dataloaderMethod · 0.45

Tested by

no test coverage detected