I write this visualization of VGG-Net (http://www.robots.ox.ac.uk/~vgg/research/very_deep/) just to be familiar with TensorFlow. The method is exactly the same as DeepVis (http://yosinski.com/deepvis).
- You need both Caffe (with Python interface) and TensorFlow installed. I know that there is TensorFlow version of VGG-Net, but I want to import it from Caffe for practicing purpose.
- Download (16-layer) VGG-Net (VGG_ILSVRC_16_layers_deploy.prototxt) and its pretrained weights (VGG_ILSVRC_16_layers.caffemodel)
- Run "python convert_VGG.py" to convert VGG-Net from Caffe to TensorFlow format.
- Run "python visualize_VGG.py" to produce per-class images (total 1000 images for 1000 ImageNet categories) that the network wants to see.