Giter VIP home page Giter VIP logo

keras-mobilenet's Introduction

Note: This project is not maintained anymore. Mobilenet implementation is already included in Keras Applications folder. Mobilenet

Keras MobileNet

Google MobileNet Implementation using Keras Framework 2.0

Project Summary

  • This project is just the implementation of paper from scratch. I don't have the pretrained weights or GPU's to train :)
  • Separable Convolution is already implemented in both Keras and TF but, there is no BN support after Depthwise layers (Still investigating).
  • Custom Depthwise Layer is just implemented by changing the source code of Separable Convolution from Keras. Keras: Separable Convolution
  • There is probably a typo in Table 1 at the last "Conv dw" layer stride should be 1 according to input sizes.
  • Couldn't find any information about the usage of biases at layers (not used as default).

TODO

  • Add Custom Depthwise Convolution
  • Add BN + RELU layers
  • Check layer shapes
  • Test Custom Depthwise Convolution
  • Benchmark training and feedforward pass with both CPU and GPU
  • Compare with SqueezeNet

Library Versions

  • Keras v2.0+
  • Tensorflow 1.0+ (not supporting Theano for now)

References

  1. Keras Framework

  2. Google MobileNet Paper

Licence

MIT License

Note: If you find this project useful, please include reference link in your work.

keras-mobilenet's People

Contributors

rcmalli avatar timanglade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keras-mobilenet's Issues

Is it faster than Keras built-in SeparableConv2D layer?

Depthwise separable convolutions are notoriously hard to implement efficiently. In particular, SeparableConv2D in Keras (as well as group convolutions in Keras and PyTorch) leads to almost no speedup on CPU, and makes training even slower on GPU, despite the number of parameters dropped by an order of magnitude.

Are you planning to add some sort of benchmarking here? I think fast group convolution and depthwise convolution are the features many people need really badly.

how to use it?

Sorry I am very new to Keras. Can you explain a bit how to use the implementation? e.g. train, do a forward-pass and etc

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.