链接:https://pan.baidu.com/s/1qKeHuJpI9ukyGtZynoItIA?pwd=ambd
提取码:ambd
小土堆yolov5项目:
下载好v5.0工程先在自己电脑上跑,根据报错排除以下debug
1、AttributeError: Can’t get attribute ‘SPPF’ on <module ‘models.common’ from ‘D:\python\prj\yolov5-5.0\models\common.py’>
解决方法:https://www.bilibili.com/read/cv14568709/
2、RuntimeError: The size of tensor a (60) must match the size of tensor b (56) at non-singleton dimension 3
解决方法:https://blog.csdn.net/qq_43108889/article/details/123910494
3、np.int
was a deprecated alias for the builtin int
.
解决方法:将整个工程文件的np.int改成了np.int64
4、RuntimeError: result type Float can’t be cast to the desired output type __int64
解决方法:https://blog.csdn.net/XQFFFF/article/details/131624671
urllib.error.URLError: <urlopen error [WinError 10049] 在其上下文中,该请求的地址无效。>
解决方法:打开梯子
5、Exception: train: Error loading data from ./coco128/images/train2017/: train: coco128\images\train2017 does not exist
解决方法:解压coco128.zip到当前文件夹,修改coco128.yaml文件中train和val的地址(把前面的两个点删去一个)
6、训练cpu会卡死
解决方法:parser.add_argument(‘–workers’, type=int, default=8, help=‘maximum number of dataloader workers’) 8改成0
训练ing
用colab训练:
1、 删除工程中多余的文件:runs文件夹,coco128/labels文件夹下的.cache文件(https://blog.csdn.net/Mr_LanGX/article/details/123798455)
2、 压缩文件记得压缩成zip,上传需要一定时间,上传完成才能解压
3、 压缩文件名不能有.否则会识别不到.zip后缀,所以我改了压缩文件名
晚上12点跑到早上9点才训练了一半,云端还断开了(文件也不见了),这个项目就暂时跳过了。
项目链接:https://pan.baidu.com/s/1CnowrC6Y1sGiGfq63z-J_A?pwd=ml74
提取码:ml74