Visualization of the filters of VGG16, via gradient ascent in input space.
Pure tensorflow version of How convolutional neural networks see the world
- python 3.5
- tensorflow 1.0.1
- numpy 1.12.0
First, you need to download the pre-learned checkpoint file.
- Download the vgg16 checkpoint file at https://github.com/tensorflow/models/tree/master/research/slim#pre-trained-models
- Extract the downloaded file.
- Move the
vgg_16.ckpt
file to theproject/root/ckpts
directory.
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.