yolo训练 各种问题

1、加载coco128.yaml报错!

1)错误提示

UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 262: illegal multibyte sequence

2)解决方法

(1)在coco128.yaml头部添加'# -*- coding:utf-8 -*-'无效!

(2)直接修改了代码!

2、拉了YOLOv5最新版本,直接用以前命令进行训练,会报错提示没设置start_epoch!之前版本并没有此问题!

1)错误提示

AssertionError: runs\train\exp9\weights\last.pt training to 10 epochs is finished, nothing to resume.
Start a new training without --resume, i.e. 'python train.py --weights runs\train\exp9\weights\last.pt'

2)其实是应该设置!训练时配置了weights的,并不是从头开始训练!不过一般都是通过resume-from来加载checkpoints的!

3)解决方法

1)将下面True改成False

posted @ 2023-03-11 09:49  kuaqi  阅读(572)  评论(0编辑  收藏  举报