OnlineWriter#
- class stable_ssl.callbacks.OnlineWriter(names: str, path: str | Path, during: str | list[str], every_k_epochs: int = -1, save_last_epoch: bool = False, save_sanity_check: bool = False, all_gather: bool = True)[source]#
Bases:
Callback
Attaches an OnlineWriter callback.
- on_predict_batch_end(trainer, pl_module, outputs, batch, batch_idx)[source]#
Called when the predict batch ends.
- on_test_batch_end(trainer, pl_module, outputs, batch, batch_idx)[source]#
Called when the test batch ends.