vis4d.engine.callbacks.yolox_callbacks¶
YOLOX-specific callbacks.
Functions
|
Get the state_dict of batch norms in the module. |
Classes
|
Callback for switching the mode of YOLOX training. |
|
Callback for syncing the norm states of YOLOX training. |
|
Callback for syncing random resize during YOLOX training. |
- class YOLOXModeSwitchCallback(*args, switch_epoch, **kwargs)[source]¶
Callback for switching the mode of YOLOX training.
- Parameters:
switch_epoch (int) – Epoch to switch the mode.
Init callback.
- class YOLOXSyncNormCallback(epoch_based=True, train_connector=None, test_connector=None)[source]¶
Callback for syncing the norm states of YOLOX training.
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.
- on_test_epoch_start(trainer_state, model)[source]¶
Hook to run at the beginning of a testing epoch.
- Parameters:
trainer_state (TrainerState) – Trainer state.
model (nn.Module) – Model that is being trained.
- Return type:
None