Giter VIP home page Giter VIP logo

convolution-layer-visualization-vgg-16's Introduction

convolution-layer-visualization-VGG-16

A GUI Tool created on PyQt4 for visualizing the intermediate layer of VGG-16 CNN trained on Imagenet.

This tool can also be used to visualize intermediate layer of any other CNN network just by changing the way the input is fed to the respective network

Alt text

Note that for this tool the network model along with its weight is saved in single hdf5 file. it can be in h5 format also. whatever extension the load_model of keras reads:

from keras.models import load_model
model = load_model('network_name.hdf5')  
           (or)
model = load_model('network_name.h5')

you can get the VGG-16 imagenet model for the keras github https://github.com/fchollet/deep-learning-models/blob/master/vgg16.py

However in order to save the model in hdf5 or h5 format call the VGG-16 model in vgg16.py using

  model = VGG16(include_top=True, weights='imagenet')
  model.save(VGG16.hdf5)
            (or)
  model.save(vgg16.h5)

Dependencies for this tool

  1.PyQt4
  2.designer-qt4 (if you have anaconda installed you will by default have PyQt and designer-qt)
   The designer-qt can be found (path_to_anaconda\Library\bin\designer-qt4.exe)  
  3. Keras-1.2.2 
 
  Note: You can use any backend - theano or tensorflow. for theano the input shape shoud be (1,3,224,224) 
  and for tensorflow the input shape should be (1,224,224,3)

Not only pre-trained imagenet you can use this tool for visualizing intermediate layer of your own models too, jusr by changing the way you feed the input in browseInputImage() function in VGG-16-visualization/vgg16_intermediate_layer_visualization_gui.py

Running the Tool

Run the vgg16_intermediate_layer_visualization_gui.py in VGG-16-Visualization directory

convolution-layer-visualization-vgg-16's People

Contributors

anujshah1003 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.