Yolov5训练意外中断或想继续训练, 解决方法: 1.保证runs目录下的exp是最大的 2.在train.py中找到resume,将default改为True 3.在train.py中找到smart_resume函数,ctrl到torch_utils.py,进行如下修改 ckpt['epoch']=下一轮训练的编号 start_epoch = ckpt['epoch'] #+1去掉 4.重新训练 python train.py --weights last.pt路径