当前位置:网站首页>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:1059 highest score
- Container of symfony
- SSH access control, blocking the IP when logging in repeatedly to prevent brute force cracking
- 光猫超级账号密码、宽带账号密码 获取
- Zzuli:1044 failure rate
- C language to implement a password manager (under update)
- 7-3 count the number of words in a line of text
- Use of constraintlayout
- 洛谷P5194 [USACO05DEC]Scales S 题解
- 【7.3】146. LRU缓存机制
猜你喜欢
tonybot 人形机器人 查看端口并对应端口 0701
Four data flows and cases of grpc
Tonybot humanoid robot starts for the first time 0630
表单文本框的使用(一) 选择文本
如何查询淘宝天猫的宝贝类目
【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue
Adc128s022 ADC Verilog design and Implementation
dllexport和dllimport
Qt—绘制其他东西
随机推荐
如何查询淘宝天猫的宝贝类目
To improve efficiency or increase costs, how should developers understand pair programming?
[combinatorics] permutation and combination (set combination, one-to-one correspondence model analysis example)
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
Zzuli:1058 solving inequalities
J-luggage lock of ICPC Shenyang station in 2021 regional games (simple code)
Detailed explanation of four modes of distributed transaction (Seata)
Why is this error reported when modifying records in the database
Zzuli:1052 sum of sequence 4
7-3 rental (20 points)
SSH access control, blocking the IP when logging in repeatedly to prevent brute force cracking
Bucket sorting in C language
Zzuli:1048 factorial table
Convert string to decimal integer
Pyqt interface production (login + jump page)
Solr series of full-text search engines - basic principles of full-text search
牛客 BM83 字符串变形(大小写转换,字符串反转,字符串替换)
Etcd cluster permission management and account password usage
How to color ordinary landscape photos, PS tutorial
Common commands for getting started with mongodb database