当前位置:网站首页>Yolov5系列(一)——網絡可視化工具netron
Yolov5系列(一)——網絡可視化工具netron
2022-07-03 14:54: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 and dllimport
- [wechat applet] wxss template style
- Find books ()
- 556. The next larger element III: simple construction simulation questions
- Use of form text box (I) select text
- To improve efficiency or increase costs, how should developers understand pair programming?
- C string format (decimal point retention / decimal conversion, etc.)
- NOI OPENJUDGE 1.5(23)
- CentOS7部署哨兵Redis(带架构图,清晰易懂)
- Luogu p5194 [usaco05dec]scales s solution
猜你喜欢

4-20-4-23 concurrent server, TCP state transition;

链表有环,快慢指针走3步可以吗

Zzuli:1053 sine function

QT - draw something else

Implement Gobang with C language

Code writing and playing method of tonybot humanoid robot at fixed distance
![[ue4] HISM large scale vegetation rendering solution](/img/a2/2ff2462207e3c3e8364a092765040c.jpg)
[ue4] HISM large scale vegetation rendering solution

Showmebug entered Tencent conference, opening the era of professional technical interview

Rasterization: a practical implementation (2)

The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
随机推荐
Pytoch deep learning and target detection practice notes
Luogu p3065 [usaco12dec]first! G problem solution
PHP GD image upload bypass
406. 根据身高重建队列
Tonybot humanoid robot infrared remote control play 0630
Devaxpress: range selection control rangecontrol uses
Tencent internship interview sorting
[opengl] advanced chapter of texture - principle of flowmap
7-1 positive integer a+b (15 points)
Zzuli:1042 sum of sequence 3
Zzuli:1047 logarithmic table
tonybot 人形机器人 定距移动 代码编写玩法
How to query the baby category of tmall on Taobao
Luogu p5194 [usaco05dec]scales s solution
[graphics] hair simulation in tressfx
556. 下一个更大元素 III : 简单构造模拟题
Pytorch深度学习和目标检测实战笔记
Luogu p4047 [jsoi2010] tribal division solution
Yolov5进阶之九 目标追踪实例1
Fundamentals of PHP deserialization