mirror of
https://github.com/open-mmlab/mmyolo.git
synced 2025-06-03 15:00:20 +08:00
* Add files via upload * cat_single_channel_test * [Feature] Add confusion matrix drawing tool * [Feature] Add confusion matrix drawing tool * [Feature] Add confusion matrix drawing tool * [Feature] Add confusion matrix drawing tool * [Docs] update amp_training.md, resume_training.md * [Docs] Update amp_training.md, resume_training.md * [Docs] Update amp_training.md, resume_training.md * [Docs] Update amp_training.md, resume_training.md * [Docs] Update amp_training.md, resume_training.md * [Docs] Update amp_training.md, resume_training.md
10 lines
867 B
Markdown
10 lines
867 B
Markdown
# Resume training
|
|
|
|
Resume training means to continue training from the state saved from one of the previous trainings, where the state includes the model weights, the state of the optimizer and the optimizer parameter adjustment strategy.
|
|
|
|
The user can add `--resume` at the end of the training command to resume training, and the program will automatically load the latest weight file from `work_dirs` to resume training. If there is an updated checkpoint in `work_dir` (e.g. the training was interrupted during the last training), the training will be resumed from that checkpoint, otherwise (e.g. the last training did not have time to save the checkpoint or a new training task was started) the training will be restarted. Here is an example of resuming training:
|
|
|
|
```shell
|
|
python tools/train.py configs/yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py --resume
|
|
```
|