当前位置:网站首页>Yolov5进阶之八 高低版本格式转换问题
Yolov5进阶之八 高低版本格式转换问题
2022-07-03 14:43:00 【宇称不守恒4.0】
yolov5 6.0 之后 pt权重文件发生了变化,不能于5.0 pt混用,导致原有5.0版本很多时候要自己训练数据集。
下面提供一种yolov5 5.0 调用 最新 yolov5 6.0 6.1 权重文件的方法。
直接适用 6.0 数据集,执行
python detect.py --source 0
AttributeError: Can’t get attribute ‘SPPF’ on <module ‘models.common’ from ‘D:\PycharmProjects\deepsort3.0\Yolov5_StrongSORT_OSNet-3.0\yolov5\models\common.py’>
是由于 5.0 没有SPPF 类,将6.0 的SPPF类复制到model下的common.py 并在头部加入 import warnings
继续执行上面命令,提示
if ‘youtube.com/’ in url or ‘youtu.be/’ in url: # if source is YouTube video
TypeError: argument of type ‘int’ is not iterable
这个问题进阶六解释了,只需要在 dataset.py 里url变为 str(url),连续两处。
再次执行,
RuntimeError: The size of tensor a (80) must match the size of tensor b (56) at non-singleton dimension 3
这个最难办,就是新版本这个函数2维变3维了,打开model下的yolo.py,准备把 6.0 的yolo.py 部分赋值过来,两个函数 def forward(self, x):和def _make_grid(self, nx=20, ny=20, i&#
边栏推荐
- Zzuli:1042 sum of sequence 3
- Plane vector addition
- Add ZABBIX calculation type itemcalculated items
- Common shortcut keys in PCB
- C language dup2 function
- Pyqt interface production (login + jump page)
- C language memory function
- Luogu p5536 [xr-3] core city solution
- tonybot 人形机器人 定距移动 代码编写玩法
- Luogu p5194 [usaco05dec]scales s solution
猜你喜欢

Talking about part of data storage in C language

分布式事务(Seata) 四大模式详解
![[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?](/img/f6/fe61c84f289f0e74a45946dac687a6.jpg)
[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?

tonybot 人形机器人 首次开机 0630

PS tips - draw green earth with a brush

论文分享:Generating Playful Palettes from Images

C language DUP function

X86 assembly language - Notes from real mode to protected mode

Understand the application scenario and implementation mechanism of differential segment

retrofit
随机推荐
[opengl] bone animation blending effect
亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
NOI OPENJUDGE 1.5(23)
Protobuf and grpc
论文分享:Generating Playful Palettes from Images
Implement Gobang with C language
分布式事务(Seata) 四大模式详解
C language STR function
洛谷P4047 [JSOI2010]部落划分 题解
Analysis of gene family characteristics - chromosome location analysis
Accelerating strategy learning using parallel differentiable simulation
Use of constraintlayout
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
C language memory function
Ultra simple mobile map development
提高效率 Or 增加成本,开发人员应如何理解结对编程?
Tonybot humanoid robot checks the port and corresponds to port 0701
Understand the application scenario and implementation mechanism of differential segment
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
从书本《皮囊》摘录的几个句子