Giter VIP home page Giter VIP logo

visualizing_what_cnn_learns's Introduction

Visualizing what CNN learns

based on CS231n "Visualizing and Understanding"

It is very nature to think about what have the kernels in the CNN learned during the training process. The visualizing and understanding CNN plays an important role in CNN validating.

First Layer: Visualize Filters

Visualize the kernels from the first layer. We can also visualize filters at higher layers, but not that interesting.

Last Layer

The last layer here means the layer immediately before the classifier. So it is actually a feature vector.

Nearest Neighbors

(from ImageNet Classification with Deep Convolutional Neural Networks)

The idea is to show the top k-th training image that produce feature vectors with the smallest Euclidean distance from the feature vector for the test image.

Dimensionality Reduction

(from Visualizing Data using t-SNE)

Visualize the space of the feature vectors b reducing the dimensionality of vectors from high dimensions to 2 dimensions using simple algorithm PCA or more complex algorithm t-SNE.

Visualizing Activations

Visualize each feature map at some certain layer as grayscale images.

Maximally Activating Patches

(from Striving for Simplicity: The All Convolutional Net)

  1. Pick a layer and a channel; e.g. conv5 is $1281313$, pick the channel $17/128$
  2. Run many images through the network record values of chosen channel
  3. visualize image patches that correspond to maximal activations

Which pixels matter: Saliency vs Occlusion

Mask part of the image before feeding to CNN, check how much predicted probabilities change.

T.B.C.

visualizing_what_cnn_learns's People

Contributors

dorianhe avatar

Stargazers

 avatar

Watchers

 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.