github可视化工具_【神经网络可视化01】——用Netron实现可视化

211b0c603a4ab3ae4a3fe2f4b55c59c8.png
版权声明:小博主水平有限,博文仅代表个人观点,希望大家多多指导。

参考:

1、神经网络可视化(一)——Netron - 云+社区 - 腾讯云

神经网络可视化(一)--Netron - 云+社区 - 腾讯云​cloud.tencent.com

2、神经网络可视化(二)——收集的一些常见的网络可视化方法 - 云+社区 - 腾讯云

神经网络可视化(二)--收集的一些常见的网络可视化方法 - 云+社区 - 腾讯云​cloud.tencent.com

1、介绍Netron

尝试着用过一些深度神经网络可视化的工具,但是体验下来最喜欢就是这一款——Netron。

关键是简单快捷,就像平时的保存文件、打开文件这样。

这样一款神器的开发作者是微软的大神Lutz Roeder,在自己的家中完成的。

项目GitHub:

lutzroeder/netron​github.com
b4597d089628ed5c0b272bcce2d2b9b5.png

Lutz Roeder个人网站:

Lutz Roeder's Deep Learning​www.lutzroeder.com

2、Netron强大的原因

(1)所支持的平台广泛。不想tensorboard等较为“专一”的可视化平台,当前主流的深度学习框架,Netron都能得到很好的支持;

(2)操作简单快捷。不需要写一行代码,只需要下载软件安装,然后打开需要可视化的文件,一步操作即可,当然也可以通过代码实现;

(3)保存快捷。对于可视化的结果,就像保存普通的文件一样,一步到位,保存在自己的电脑上。


3、Netron支持的框架

在复现别人的模型的时候,有时我们要知道一个模型的输入与输出名,可是有时作者并没有告诉我们,要我们自己去查。
有了这个工具,可以清晰地看见网络的输入输出名,具体的网络结构。
相比tensorboard它更加轻量化,而且支持各种框架。

而Netron最为强大的功能,就在于它所支持的框架十分广泛,下面是一些支持的框架:

ONNX (.onnx, .pb, .pbtxt),

——————————————————————Keras (.h5, .keras),

CoreML (.mlmodel),

Caffe2 (predict_net.pb, predict_net.pbtxt),

MXNet (.model, -symbol.json)

TensorFlow Lite (.tflite).

Caffe (.caffemodel, .prototxt),

PyTorch (.pth),

Torch (.t7),

CNTK (.model, .cntk),

PaddlePaddle(__model__),

Darknet (.cfg),

scikit-learn (.pkl),

TensorFlow.js (model.json, .pb)

————————————————————TensorFlow (.pb, .meta, .pbtxt).


4、安装Netron

(1)下载地址:

lutzroeder/netron​github.com
b4597d089628ed5c0b272bcce2d2b9b5.png

d8e153e4e0662e127f30e5bb26f2580a.png

(2)【推荐】python版Netron安装说明:

进入tensorflow环境,然后输入pip install netron

063977e2cc6013ab0bc20d89a4a7ee31.png

(3)【推荐】网页版Netron

进入网址后,点击Start

lutzroeder/netron​github.com
b4597d089628ed5c0b272bcce2d2b9b5.png

201c01bd338ec24dbcacf83d43693c6c.png

或者是输入如下链接:https://lutzroeder.github.io/netron/

如图操作

1cdbec3944fc75674dfa87174c75a922.png

5、使用Netron

c663b582f9793539edb885275862d54a.png

5b7b9e93a653e83b9b254274fda48d3a.png

建议使用 网页版Netron 或者 Python版Netron

输入如下链接: https:// lutzroeder.github.io/ne tron/
会打开一个网页,网页的界面很简单,直接单击网页中的Open Model按钮,选择需要可视化的文件(文件类型参见上面)

下载个案例,测试一下

0edbdc3525caa8cc2b8402c65f5f9bf2.png

这是tensorflow下的,支持TensorFlow (.pb, .meta, .pbtxt)文件……

68953e950425133dcc977823d52a1266.png

可视化结果的部分……

691b5b16780798b7ee7c90b4e9724160.png

祝,学习顺利

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
netronlight .net开源流程图类库,类似visio,这个较轻量级版本多出不少东西。支持Group,支持Undo。但有些东西实现的较为啰嗦。不过不失为一个学习和再开发的项目。 Netron Light v2.5 pre-release The final release will be v3.0 around the summer 2006. You can however rely on the current interfaces and base classes, the core is stable. Many things are still missing in this pre-release but I have also stripped many features and things like documentation, unit tests, code comments, ASP.Net features and so on. While all the code is yours you'll have to register (it'll be around $50,-) for the documentation and all the fancy stuff. I hope to complete the 'ultimate guide to diagramming in C#' by the summer which will be accessible to registered users. Support is still kinda of a problem since I have little time. I hope the Netron forum will continue to deliver support and inspire (thanks to all who keep an eye on the forum). I have considered sort of billable consultancy and delivering custom versions of the diagram control(s) but I fear I don't have enough time and quiting my job to work full-time on Netron is an unreachable dream. Thanks to all of you who have donated to Netron and support this project by Email, chat or via the forum. I hope this pre-release will make you happy in the same way I enjoyed creating it. I beleive it contains a lot of stuff to explore and it's a little pearl of design. Thanks for downloading this, Francois [Francois.Vanderseypen@netronproject.com]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值