当前位置:网站首页>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
之后再执行上述命令就没有问题了
边栏推荐
- Dllexport et dllimport
- FPGA blocking assignment and non blocking assignment
- To improve efficiency or increase costs, how should developers understand pair programming?
- Some concepts about agile
- On MEM series functions of C language
- C language dup2 function
- Showmebug entered Tencent conference, opening the era of professional technical interview
- [graphics] real shading in Unreal Engine 4
- tonybot 人形機器人 紅外遙控玩法 0630
- C language memory function
猜你喜欢
![[graphics] adaptive shadow map](/img/93/a6a3c7716331368c90c2c86da11f55.jpg)
[graphics] adaptive shadow map

5.2-5.3

PS tips - draw green earth with a brush

My QT learning path -- how qdatetimeedit is empty

Pyqt interface production (login + jump page)
![[ue4] cascading shadow CSM](/img/83/f4dfda3bd5ba0172676c450ba7693b.jpg)
[ue4] cascading shadow CSM
![[ue4] geometry drawing pipeline](/img/30/9fcf83a665043fe57389d44c2e16a8.jpg)
[ue4] geometry drawing pipeline

C language fcntl function

How to query the baby category of tmall on Taobao
![[graphics] hair simulation in tressfx](/img/41/cef55811463d3a25a29ddab5278af0.jpg)
[graphics] hair simulation in tressfx
随机推荐
Zzuli:1040 sum of sequence 1
Web server code parsing - thread pool
How to query the baby category of tmall on Taobao
Qt development - scrolling digital selector commonly used in embedded system
[ue4] cascading shadow CSM
tonybot 人形机器人 查看端口并对应端口 0701
C string format (decimal point retention / decimal conversion, etc.)
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
5.2-5.3
Analysis of gene family characteristics - chromosome location analysis
Luogu p5194 [usaco05dec]scales s solution
NOI OPENJUDGE 1.5(23)
Zzuli: cumulative sum of 1050 factorials
牛客 BM83 字符串變形(大小寫轉換,字符串反轉,字符串替換)
Tonybot Humanoïde Robot Infrared Remote play 0630
Use of constraintlayout
On MEM series functions of C language
C language to realize mine sweeping
[graphics] hair simulation in tressfx
Zzuli:1058 solving inequalities