yolov5继续训练时PermissionError: [Errno 13] Permission denied: ‘.‘报错解决
·
调试可得报错位置在断点这一句,就是last没加载成功。last是由last=Path(check_file(opt.resume) if isinstance(opt.resume, str) else get_latest_run())得到,opt.resume就是train.py里面我们给传的参,只要传的参改成last.pt的具体位置就行。
parser.add_argument("--resume", nargs="?", const=True, default='D:\yolov5-7.0\yolov5-master\yolov5-master\\runs\\train-seg\exp55\weights\last.pt', help="resume most recent training")
更多推荐

所有评论(0)