Coder Social home page Coder Social logo

deconvnet's Introduction

DeConvNet

Personal implementation of DeConvNet, used to visualize CNN. Follow Pro.Zealer's paper:

Visualizing and Understanding Convolutional Networks

##What in here?

###CPRStages_up(down) One stage consists of one pooling layer(2D, not overlapping), one convolution layer(2D not overlapping) and one activation function. The series of up_stage and down_stage are totally inverse. For more detail, look at the code in DeCoovNet/DeConvNet/CPRStage.

###Examples: Two examples inllustrate how to use this to visulize CNN. Admittedlly, currentle this is not very easy to use. My fault :-(

I have trained a cifa-10 CNN with 3 conv layers and a 70% AR. And the paremeters stored in DeCoonvNet/Exampls/Params.pkl . Here I will show how this work using this structure.

####Example1 Visulize what the kernels in 3rd layer 'see' together by not setting other any output map to zero.( pictures were randomly picked )

EX1

####Example2 Use heaps and a simple forward conv net to find samples that yield max activation value in 2,23,60,12,45,9th kernel. And then visualize what those kernels see separatly, using a deconvnet, by setting other feature map to zeros. More specifically, the 23rd kernel is sensitive to boats, the 12nd and 45th kernel respones to cars strongly and the 9th kernel like airplanes very much.

EX2

###Future Improvemence:

  1. 完善API, less reshape is needed, 输入三维矩阵,在内使用theano接口,在外就算了
  2. convert this into a theano op and push it to theano。master

deconvnet's People

Contributors

chienlima avatar

Watchers

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