当前位置:网站首页>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&#
边栏推荐
- Paper sharing: generating playful palettes from images
- The picture quality has been improved! LR enhancement details_ Lightroom turns on AI photo detail enhancement: picture clarity increases by 30%
- Implement Gobang with C language
- tonybot 人形机器人 查看端口并对应端口 0701
- Fundamentals of PHP deserialization
- Pyqt interface production (login + jump page)
- Puzzle (016.4) domino effect
- J-luggage lock of ICPC Shenyang station in 2021 regional games (simple code)
- 【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
- Luogu p4047 [jsoi2010] tribal division solution
猜你喜欢

Happy capital new dual currency fund nearly 4billion yuan completed its first account closing

tonybot 人形机器人 红外遥控玩法 0630

C language to realize mine sweeping

Adc128s022 ADC Verilog design and Implementation

Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder
![洛谷P4047 [JSOI2010]部落划分 题解](/img/7f/3fab3e94abef3da1f5652db35361df.png)
洛谷P4047 [JSOI2010]部落划分 题解

Tonybot humanoid robot starts for the first time 0630

Programming language: the essence of type system

Four data flows and cases of grpc

US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
随机推荐
Simulation of LS -al command in C language
NOI OPENJUDGE 1.4(15)
Thread. Sleep and timeunit SECONDS. The difference between sleep
Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解
puzzle(016.3)千丝万缕
Zzuli: sum of 1051 square roots
Dllexport and dllimport
1017 a divided by B (20 points)
Zhejiang University Edition "C language programming (4th Edition)" topic set reference ideas set
Ultra simple mobile map development
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
Programming language: the essence of type system
Add ZABBIX calculation type itemcalculated items
NOI OPENJUDGE 1.5(23)
Zzuli:1049 square sum and cubic sum
Déformation de la chaîne bm83 de niuke (conversion de cas, inversion de chaîne, remplacement de chaîne)
光猫超级账号密码、宽带账号密码 获取
洛谷P5536 【XR-3】核心城市 题解
Zzuli:1040 sum of sequence 1