Giter Club home page Giter Club logo

deeplearning4j-vgg-convnet's Introduction

VGG ConvNet for Deeplearning4j

The codes contain the pretrained Deeplearning4j convolutional layers of ConvNet D (VGG 16) and ConvNet E (VGG 19) described in

  • Simonyan, K., & Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556.

The pretrained weights were downloaded from the authors' website. The serialized models and configurations in this repository do not contain the fullly connected layers in the original models. The pretrained convolutional networks can be used as feature extractors.

Content

  • src/Demo.java for demonstration
    • INDArray preprocess(INDArray raw) substracts the means (R: 123.680, G: 116.779, B: 103.939) from each channel of input image.
    • MultiLayerNetwork getBottomLayers(MultiLayerNetwork net, int k) returns bottom-k layers of a pretrained convolutional VGG network.
  • src/FeatureVisualizer.java: Visualize features
  • src/VGGConvNetD.java and src/VGGConvNetE.java contain the configurations of convolutional layers of VGG models.
  • model/vgg16.dl4jmodel and models/vgg19.dl4jmodel contain serialized Deeplearning4j VGG models

Example

Input: Fat squirrel of U-M

squirrel

Output of the first 10 layers (7 ConvolutionLayers and 3 SubsamplingLayers) of VGG ConvNet D

vgg16layer10

Final output of VGG ConvNet E

vgg19layer21

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.