GithubHelp home page GithubHelp logo

deconvnet-keras's Introduction

Deconvnet

This is a implementation of Deconvnet in keras, following Matthew D.Zeiler's paper Visualizing and Understanding Convolutional Networks

Feature

Given a pre-trained keras model, this repo can visualize features of specified layer including dense layer.

Dependencies

  • Keras 1.1(Theano Backend)
  • Python >= 2.7
  • argparse 1.0
  • Pillow 1.1

Examples

Below is several examples of feature visualization based on pre-trained VGG16 in keras, 'max' means pick the greates activation in the feature map to be visualized and set other elements to zeros, 'all' mean use all values in the feature map to visualize.
The left is max activation feature, the right is all activation feature

  • Original Image

  • block3_conv3_128

           

  • block4_conv2_46

The 46th feature in block4_conv2 layer catches 'nose' feature

       

  • block5_conv3_256

The 256th feature in block5_conv3 layer catches 'ear' feature

       

  • fc1_0

  • fc2_248

  • predictions_248

predictions_248 is the predicted class of the image(label: Eskimo_dog)

Shortage

  • The code implements visualize function for only Convolution2D, MaxPooling2D, Flatten, Input, Dense, Activation layers, thus cannot handle other type of layers.
  • The code support only plain networks, thus cannot visualize ResNet, Highway Networks or something.

deconvnet-keras's People

Contributors

jalused avatar nitish11 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.