当前位置:网站首页>Yolov5系列(一)——网络可视化工具netron
Yolov5系列(一)——网络可视化工具netron
2022-07-03 14:53:00 【一大块肉松】
一、介绍
netron:网络可视化工具,使用这个软件可以清晰的展示网络模型的每一层的输入输出,网络的整体的架构,而且支持不同的网络框架。
类似下图:
二、安装步骤(介绍windows系统安装)
(其他版本可以参考博客)
1、打开此链接:Github下载链接
打开上述链接,划到下面 install,选择 windows 下载
2、选择下图所示Netron-Setup-5.8.9.exe,下载安装
3、安装成功之后显示如下:
三、打开yolov5系列的模型
1、转换
因为netron对 .pt 的文件没有太好的兼容性,所以需要将文件进行转换,在yolov5 工程中,提供了export.py,可以进行文件转换
2、在终端直接输入以下命令
python export.py --weights yolov5s.pt --include onnx
注意:输入命令时需要注意export.py 和 yolo5s.pt 的路径
我是直接在该文件的目录下,所以不需要再写其他的路径
执行完命令,会在yolov5s.pt 同级目录下生成 yolov5s.onnx
此时就可以用网络可视化工具netron打开
四、执行命令可能遇到的问题
requirements: onnx not found and is required by YOLOv5, attempting auto-update...
requirements: 'pip install onnx' skipped (offline)
ONNX: export failure: No module named 'onnx'
解决办法
安装onnx
pip install onnx
之后再执行上述命令就没有问题了
边栏推荐
- Implement Gobang with C language
- [combinatorics] permutation and combination (set combination, one-to-one correspondence model analysis example)
- Use of form text box (I) select text
- [opengl] geometry shader
- On MEM series functions of C language
- 光猫超级账号密码、宽带账号密码 获取
- Analysis of gene family characteristics - chromosome location analysis
- Chapter 14 class part 1
- 创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
- Address book sorting
猜你喜欢
[graphics] real shading in Unreal Engine 4
Tencent internship interview sorting
Niuke: crossing the river
4-29——4.32
B2020 分糖果
CentOS7部署哨兵Redis(带架构图,清晰易懂)
Devaxpress: range selection control rangecontrol uses
tonybot 人形机器人 红外遥控玩法 0630
5.2-5.3
The picture quality has been improved! LR enhancement details_ Lightroom turns on AI photo detail enhancement: picture clarity increases by 30%
随机推荐
C language dup2 function
556. 下一个更大元素 III : 简单构造模拟题
dllexport和dllimport
C string format (decimal point retention / decimal conversion, etc.)
Chapter 14 class part 1
亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
5.4-5.5
4-29——4.32
My QT learning path -- how qdatetimeedit is empty
Yolov5进阶之八 高低版本格式转换问题
Timecho of Tianmou technology completed an angel round financing of nearly 100 million yuan to create a native timing database of the industrial Internet of things
光猫超级账号密码、宽带账号密码 获取
NOI OPENJUDGE 1.3(06)
[engine development] rendering architecture and advanced graphics programming
Zzuli: sum of 1051 square roots
Zzuli:1053 sine function
分布式事务(Seata) 四大模式详解
Devaxpress: range selection control rangecontrol uses
7-1 positive integer a+b (15 points)
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03