Code Monkey home page Code Monkey logo

cnngraph's Introduction

CNNGraph

1 CNNGraph作用

CNNGraph能根据传入的Tensorflow模型文件,自动提取网络结构,并绘制出来。

2 使用

以MobileNet V1w为例,MobileNet V1官方预训练模型提供了pb模型和ckpt模型两种。其中,pb模型的输入Tensor的名称为input:0,ckpt模型文件的输入Tensor名称为batch:0,二者的输出名称均为MobilenetV1/Predictions/Reshape_1:0。假设将输出HTML名称设置为dst.html。

2.1 pb模型

假设pb模型文件名为mobilenet_v1_1.0_192_frozen.pb,则使用命令如下

python read_graph.py  mobilenet_v1_1.0_192_frozen.pb input:0 MobilenetV1/Predictions/Reshape_1:0 dst.html

2.2 ckpt模型

假设ckpt模型文件名为/mobilenet_v1_1.0_192.ckpt,则使用命令如下

python read_graph.py  mobilenet_v1_1.0_192.ckpt batch:0 MobilenetV1/Predictions/Reshape_1:0 dst.html

3 效果展示

MobileNet V1 网络结构解析并展示效果

合并计算节点效果

展开计算节点效果

cnngraph's People

Contributors

huachao1001 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.