vis4d.engine.callbacks.ema¶
Callback for updating EMA model.
Classes
|
Callback for EMA. |
- class EMACallback(epoch_based=True, train_connector=None, test_connector=None)[source]¶
Callback for EMA.
Init callback.
- Parameters:
epoch_based (bool, optional) – Whether the callback is epoch based. Defaults to False.
train_connector (None | CallbackConnector, optional) – Defines which kwargs to use during training for different callbacks. Defaults to None.
test_connector (None | CallbackConnector, optional) – Defines which kwargs to use during testing for different callbacks. Defaults to None.