EpochBasedTrainLoop¶
- class mmengine.runner.EpochBasedTrainLoop(runner, dataloader, max_epochs, val_begin=1, val_interval=1, dynamic_intervals=None)[source]¶
Loop for epoch-based training.
- Parameters:
runner (Runner) – A reference of runner.
dataloader (Dataloader or dict) – A dataloader object or a dict to build a dataloader.
max_epochs (int) – Total training epochs.
val_begin (int) – The epoch that begins validating. Defaults to 1.
val_interval (int) – Validation interval. Defaults to 1.
dynamic_intervals (List[Tuple[int, int]], optional) – The first element in the tuple is a milestone and the second element is a interval. The interval is used after the corresponding milestone. Defaults to None.