设置mmdetection储存checkpoint数量 checkpoint 类定义在mmcv.runner.hooks.checkpoint.py文件下,定义参数中有max_keep_ckpts=-1可以设置最大储存checkpoint的数目。 在config文件下可以定义: checkpoint_cfg = dict(max_keep_cpkts=5) 设置最大储存数为5。