当前位置:网站首页>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&#
边栏推荐
- Implement Gobang with C language
- Puzzle (016.4) domino effect
- Time conversion ()
- 牛客 BM83 字符串變形(大小寫轉換,字符串反轉,字符串替換)
- 【7.3】146. LRU缓存机制
- C language fcntl function
- Luogu p5194 [usaco05dec]scales s solution
- Bucket sorting in C language
- Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder
- Write a 2-minute countdown.
猜你喜欢

分布式事务(Seata) 四大模式详解

Tonybot humanoid robot starts for the first time 0630

adc128s022 ADC verilog设计实现

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

PS tips - draw green earth with a brush

tonybot 人形机器人 定距移动 代码编写玩法
![[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?

基因家族特征分析 - 染色体定位分析

Talking about part of data storage in C language

Niuke: crossing the river
随机推荐
Common shortcut keys in PCB
NOI OPENJUDGE 1.3(06)
Sub-GHz无线解决方案Z-Wave 800 系列ZG23 soc和ZGM230S模块
Sendmail can't send mail and it's too slow to send. Solve it
Solve the problem that PR cannot be installed on win10 system. Pr2021 version -premiere Pro 2021 official Chinese version installation tutorial
ConstraintLayout 的使用
Tonybot humanoid robot infrared remote control play 0630
Address book sorting
提高效率 Or 增加成本,开发人员应如何理解结对编程?
Analysis of gene family characteristics - chromosome location analysis
tonybot 人形机器人 首次开机 0630
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
洛谷P3065 [USACO12DEC]First! G 题解
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
分布式事务(Seata) 四大模式详解
Bibit pharmaceutical rushed to the scientific innovation board: annual revenue of 970000, loss of 137million, proposed to raise 2billion
Write a 2-minute countdown.
C language to implement a password manager (under update)
C language fcntl function