项目作者: PrinsWu

项目描述 :
Keras CNN visualization sample but not work in anaconda env, because the version of keras.
高级语言: HTML
项目地址: git://github.com/PrinsWu/cnn_visualization_sample.git
创建时间: 2018-06-13T06:01:59Z
项目社区:https://github.com/PrinsWu/cnn_visualization_sample

开源协议:MIT License

下载


CNN Visualization Sample

When I study the CNN in AIND of udacity, it say a Keras blog post has a sample to visualize CNN. I got the code from Github but it is not work.
If you follow the process of the guide of the course, you will get some error about save_img. The main cause is version of keras of anaconda is 2.1.6 but this sample have to use 2.2.0..
The second error is on transfer layer block2_conv1 since the size of it is 128 but the code write 200 in for loop.
Since I do some change in the code and let it can transfer the layers from 1 to 5.

Getting Started

This sample run on anaconda if you do not have it then install it.

Installing

Create a new environment in anaconda that install correct version and can run this sample well.

  1. conda env create -f environment.yml

Get code from git repository.

  1. git clone https://github.com/PrinsWu/cnn_visualization_sample.git

Running the sample

Run jupyter notebook to display the result or you can use it to load another model to produce images of filters.

  1. source activate keras_vis
  2. jupyter notebook

License

This project is licensed under the MIT License - see the LICENSE.md file for details