/cnn-visualizer

Visualization of the filters of VGG16, via gradient ascent in input space.

Primary LanguagePythonMIT LicenseMIT

cnn-visualizer

Visualization of the filters of VGG16, via gradient ascent in input space.

Pure tensorflow version of How convolutional neural networks see the world

  • Generated image of Convolutional Layer 3-1

  • Generated image of Convolutional Layer 4-1

Prerequisites

  • python 3.5
  • tensorflow 1.0.1
  • numpy 1.12.0

How to run

1. Download vgg16 checkpoint file

First, you need to download the pre-learned checkpoint file.

2. Run script "main.py"

Now run main.py script. You can adjust options such as image size, layer name, and so on.

In the cpu version, it takes only a minute to create one image.