To run the code: need an installation of Caffe with built pycaffe libraries, as well as the python libraries numpy, scipy and PIL. For instructions on how to install Caffe and pycaffe, refer to the installation guide here. Before running the ipython notebooks, you'll also need to download the bvlc_googlenet model, and insert the path of the pycaffe installation into pycaffe_path
and the model path to the googlenet model into model_path
.
This code was based on the deepdream code shared by Google, as well as the code by Kyle McDonald and Auduno's article and code on visualizations with GoogleNet. The idea of using bilateral filtering comes from Mike Tyka.
Image net class id and class table - image net class id to class