资源算法chainer-visualization

chainer-visualization

2019-09-18 | |  80 |   0 |   0

CNN Activation Visualization

An implementation in Chainer of the neural network visualization by Zeiler and Fergus, Visualizing and Understanding Convolutional Networks, 2013.

Run

Preparing a Trained Model

Download a pretrained VGG Chainer model following the README in this repository.

Visualizing the Activations

Run the visualization script as follows. The VGG model will be feeded with an image and the activations in each of the five convolutional layer will be projected back to the input space, i.e. the space of the original image of size (3, 224, 224). The projections will be stored in the specified output directory.

python visualize.py --image-filename images/cat.jpg --model-filename VGG.model --out-dirname results --gpu 0

Notes

You can visualize the activations for an image of arbitrary size since the image will be scaled to the size expected by the classifier automatically.

Samples

Activations visualized from the convolutional layers of VGG using an image of a cat.

1st Layer of Convolutions

conv1.png

2nd Layer of Convolutions

conv2.png

3rd Layer of Convolutions

conv3.png

4th Layer of Convolutions

conv4.png

5th Layer of Convolutions

conv5.png


上一篇:Faster RCNN

下一篇:pytorch-nec

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...