Giter Site home page Giter Site logo

dgschwend / netscope Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethereon/netscope

164.0 14.0 72.0 830 KB

Neural network visualizer and analyzer

Home Page: http://dgschwend.github.io/netscope

CSS 2.49% JavaScript 89.61% HTML 0.99% Shell 0.01% CoffeeScript 6.90%

netscope's Introduction

Netscope CNN Analyzer

available here: http://dgschwend.github.io/netscope

This is a CNN Analyzer tool, based on Netscope by ethereon. Netscope is a web-based tool for visualizing neural network topologies. It currently supports UC Berkeley's Caffe framework.

This fork adds analysis capabilities, enabling the computation of network complexity (number of operations) and network size (number of parameters) for easy comparison of different networks.

Documentation

Demo

License

Released under the MIT license. All included network models provided under their respective licenses.

netscope's People

Contributors

dgschwend avatar ethereon avatar iceflame89 avatar raingo avatar sovrasov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netscope's Issues

activation?

I analysis my network and get that Activation is NaN, so what's this mean? Thanks.

Add Layer Visualizations

Suggested by @Grabber in DeepScale/SqueezeNet Issue #16 "regarding performance improvement for AlexNet"

@dgschwend That is a must have tool, I was exactly thinking about an oscilloscope for CNNs! Do you think your tool could generate visual representation about layers too?

On Darknet framework there is a feature called visualize that generates visual representations of the filters, layer by layer, take a look:

3b8e3a56-481b-11e6-92ab-558113a48612

It would be useful to have this kind of visual representation rendered on the menu that is shown when you pass the mouse over the network layer.

f0663dc0-482f-11e6-98d3-aaabc1c113af

Permute problem

Hi David,

I have a question for Permute layer.
CAFFE blob : [# batch, # channel, height, width]
If Permute {dim:0, 2, 3, 1}, then the output should be [# batch, height, width, # channel]
But in this netscope CNN analysis, the output would be [# batch, width, # channel , height]
Which one is correct?
image

Thanks,
Tommy

NaN when input data is 5D blob

Hello, Thanks for sharing the good tool
However, I got the NaN output dimension when I use the input data shape is 5D (sample, channel, depth, height, width), instead of the normal 4D blob ( (sample, channel, height, width). Could you fix it to allow input is 5D blob? Thanks
This is my prototxt

input: "data"
input_dim: 1
input_dim: 3
input_dim: 48
input_dim: 224
input_dim: 224

layer {
  name: "conv1"
  type: "Convolution"
  bottom: "data"
  top: "conv1"
  convolution_param {
    num_output: 16
    pad: 1
    kernel_size: 3
    kernel_size: 3
    kernel_size: 3
    stride: 1
    weight_filler {
      type: "gausian"
      std : 0.1
    }
    bias_filler {
      type: "constant"
    }
  }
}

How to modify this project to adapt for self-written layers?

Hi, thanks for this work~ it is really useful.
I modified this project ( mainly in analyzer.coffee) to make it adapt for some of my own layers and parameters.
But I did not find how to re-compile this project to make it work (I konw I should use coffee but not sure how to compile the whole project ). Could you give me a hint about this?
Thanks again!

About correlation layer

Flownet and some siamese network have the correlation layer, its correlation two feature map, can you add the analysis in netscope?

How to calculate the total activation?

Hi, may I know how you calculate the total activation?
I run a simple prototxt in the netscope to check the activation value of each layer. There are only two layers in my prototxt, i.e., data layer and conv1. The netscope shows the activation value for data layer is 4 and the activation value for conv1 is 1, but the total activation is 9.
screenshot from 2017-05-30 10 30 51

Wrong parameter count

Hello,
shouldn't there be the bias count added to the parameter count?

For example in the details of ZynqNets conv1 layer there is written 1728 (= 3*3*3*64) parameter. Shouldn't it be 1792 (= 3*3*3*64 + 64)?

Netscope - snapshot

Dear David,
I would like to download an image of the SqueezeNet architecture as it is shown in Netscope, without loosing definition (I want to avoid snapshot programs). But the architecture shown in Netscope is not an image object that can be saved in a file.
What would be the best way to do it?
Thanks in advance

the total activation memory is not correct

Hi dgschwend,

I've found a error of this netscope project.
For example, the sum of activation memory in Googlenet is nearly 102.1M (input 227x227, batch 10),
but the total activation memory show that is nearly 103.73M.

The sum of activation memory in ZynqNet is nearly 8.51M (input 256x256, batch 1),
but the total activation memory show that is nearly 8.8M.

Error when the network name is undefined

When the name field is not specified in .prototxt, the tool shows Untitled Network title and can't handle the input dimensions. It doesn't show any error message, so it's hard to understand why the blob dimensions are NaNs.
image
After the name was specified, the dimensions became normal:
image

@dgschwend can you fix this behavior? There are two variants: show a error message or ignore missing name and draw the network as usual.

Slice layer

Could you please suport slice layer and some other new layers like depthwiseconvolution and shufflechannel?

modify analyzer.coffee

I made some modifications to analyzer.coffee but found no change in analysis. How can these modifications take effect?

How to export calculation counts for each layer?

Hello, could you please tell me how do you export the calculation counts of each layer? especially those relu and pooling layers which is not so easy to export from convolution operations...Thanks a lot~

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.