当前位置:网站首页>【YOLOv5训练错误】权重文件出错?
【YOLOv5训练错误】权重文件出错?
2022-08-10 05:29:00 【Time.Xu】
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘D:\\yolov5\\yolov5-5.0
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from
当出现上述错误时,我是这样考虑的:“yolov5 5.0”的模型中并没有使用SPPF,所以错误的出现应该是权值文件和模型的出了不匹配的问题。所以我单独下载了对应的权值文件,放入项目中,问题就解决了。
https://github.com/ultralytics/yolov5/releases/download/v5.0/yolov5m.pt
https://github.com/ultralytics/yolov5/releases/download/v5.0/yolov5l.pt
https://github.com/ultralytics/yolov5/releases/download/v5.0/yolov5s.pt
同理,需要v3.0或者v2.0版本的话,我们直接更改链接里的数字就行
写道这里突然想到一件事情,就是很多人在写论文时模型都参考江大白老师的,这没啥,可是人家那个版本是yolov5 2.0的,现在都6.0了,好多人画的都和他的一样???大人!时代变了啊!
Traceback (most recent call last):
File "J:/yolov5-6.0xxs/train.py", line 620, in <module>
Traceback (most recent call last):
File "J:/yolov5-6.0xxs/train.py", line 620, in <module>
这种情况说简单了就是没下载下来,搭个梯子就好了。
当然了,不使用初始训练权值也是可以的。。
parser.add_argument('--weights', type=str, default=None, help='initial weights path')
边栏推荐
- Pony语言学习(八):引用能力(Reference Capabilities)
- MongoDB 基础了解(一)
- Zhongang Mining: Strong downstream demand for fluorite
- OAuth2的使用场景、常见误区、使用案例
- 基于Qiskit——《量子计算编程实战》读书笔记(六)
- 聊聊 API 管理-开源版 到 SaaS 版
- SQLSERVER 2008 parses data in Json format
- How to get the last day of a month
- awk of the Three Musketeers of Shell Programming
- Buu Web
猜你喜欢
顺序表的删除,插入和查找操作
Arduino框架下合宙ESP32C3 +1.8“tft 网络时钟
论文精度 —— 2016 CVPR 《Context Encoders: Feature Learning by Inpainting》
如何在报表控件FastReport.NET中连接XLSX 文件作为数据源?
基于Qiskit——《量子计算编程实战》读书笔记(六)
Become a language that hackers have to learn. Do you think it's okay after reading it?
How to improve product quality from the code layer
一文带你搞懂OAuth2.0
基于BP神经网络的多因素房屋价格预测matlab仿真
OAuth2的使用场景、常见误区、使用案例
随机推荐
FPGA工程师面试试题集锦31~40
Buu Web
Joomla vulnerability reproduced
Flutter development: error The following assertion was thrown resolving an image codec: Solution for Unable to...
Interface documentation evolution illustration, some ancient interface documentation tools, you may not have used it
AVL tree insertion--rotation notes
Guys, the test in the idea uses FlinkCDC SQL to read Mysql data and write it into Kafka. The code creates
Concurrency tool class - introduction and use of CountDownLatch, CyclicBarrier, Semaphore, Exchanger
aliases节点分析
How to improve product quality from the code layer
Touch chip used in smart touch remote control
How does Jenkins play with interface automation testing?
Become a language that hackers have to learn. Do you think it's okay after reading it?
Error when installing oracle rac 11g and executing root.sh
Transforming into a product, is it reliable to take the NPDP test?
pytorch框架学习(9)torchvision.transform
OAuth2 usage scenarios, common misunderstandings, use cases
Stacks and Queues | Implementing Queues with Stacks | Implementing Stacks with Queues | Basic Theory and Code Principles
pytorch 学习
Pony语言学习(九)——泛型与模式匹配(终章)