当前位置:网站首页>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
之后再执行上述命令就没有问题了
边栏推荐
- Zzuli:1046 product of odd numbers
- C # realizes the login interface, and the password asterisk is displayed (hide the input password)
- 【7.3】146. LRU caching mechanism
- Creation of data table of Doris' learning notes
- 牛客 BM83 字符串变形(大小写转换,字符串反转,字符串替换)
- Adc128s022 ADC Verilog design and Implementation
- [ue4] Niagara's indirect draw
- How to color ordinary landscape photos, PS tutorial
- Get permissions dynamically
- Pytorch深度学习和目标检测实战笔记
猜你喜欢
Adc128s022 ADC Verilog design and Implementation
QT - draw something else
Analysis of gene family characteristics - chromosome location analysis
C language to realize mine sweeping
分布式事务(Seata) 四大模式详解
My QT learning path -- how qdatetimeedit is empty
Puzzle (016.4) domino effect
Creation of data table of Doris' learning notes
[graphics] efficient target deformation animation based on OpenGL es 3.0
C language fcntl function
随机推荐
1017 a divided by B (20 points)
[graphics] hair simulation in tressfx
5.4-5.5
Fundamentals of PHP deserialization
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
QT - draw something else
Class part2
Luogu p5536 [xr-3] core city solution
tonybot 人形机器人 首次开机 0630
The picture quality has been improved! LR enhancement details_ Lightroom turns on AI photo detail enhancement: picture clarity increases by 30%
提高效率 Or 增加成本,开发人员应如何理解结对编程?
PHP GD image upload bypass
How to query the baby category of tmall on Taobao
关于敏捷的一些概念
.NET六大设计原则个人白话理解,有误请大神指正
Vs+qt multithreading implementation -- run and movetothread
cpu飙升排查方法
【微信小程序】WXSS 模板样式
Luogu p3065 [usaco12dec]first! G problem solution
FPGA blocking assignment and non blocking assignment