当前位置:网站首页>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
之後再執行上述命令就沒有問題了
边栏推荐
- B2020 points candy
- Fundamentals of PHP deserialization
- 5.4-5.5
- Code writing and playing method of tonybot humanoid robot at fixed distance
- Luogu p5194 [usaco05dec]scales s solution
- 从书本《皮囊》摘录的几个句子
- Zzuli:1052 sum of sequence 4
- 406. Reconstruct the queue according to height
- 4-29——4.32
- Showmebug entered Tencent conference, opening the era of professional technical interview
猜你喜欢

5.4-5.5
![Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution](/img/89/da1a3a38e02671628f385de0f30369.png)
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution

【微信小程序】WXSS 模板样式
![[wechat applet] wxss template style](/img/28/f9d12bf761e25f9564d92697cf049d.png)
[wechat applet] wxss template style

tonybot 人形机器人 红外遥控玩法 0630

Introduction to opengl4.0 tutorial computing shaders

Tonybot humanoid robot infrared remote control play 0630

Puzzle (016.3) is inextricably linked
![[graphics] hair simulation in tressfx](/img/41/cef55811463d3a25a29ddab5278af0.jpg)
[graphics] hair simulation in tressfx

创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
随机推荐
Implement Gobang with C language
B2020 points candy
Tensor 省略号(三个点)切片
Zzuli: sum of 1051 square roots
Talking about part of data storage in C language
Bucket sorting in C language
复合类型(自定义类型)
Chapter 14 class part 1
2021-10-16 initial programming
Yolov5进阶之九 目标追踪实例1
ASTC texture compression (adaptive scalable texture compression)
[combinatorics] permutation and combination (set combination, one-to-one correspondence model analysis example)
Zzuli:1059 highest score
cpu飙升排查方法
Déformation de la chaîne bm83 de niuke (conversion de cas, inversion de chaîne, remplacement de chaîne)
Luogu p3065 [usaco12dec]first! G problem solution
Detailed explanation of four modes of distributed transaction (Seata)
C language fcntl function
Showmebug entered Tencent conference, opening the era of professional technical interview
Dllexport and dllimport