Coder Social home page Coder Social logo

dreadlord1984 / caffe_remove_bn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heagoo/caffe_remove_bn

0.0 3.0 0.0 36.08 MB

License: Other

CMake 2.77% Makefile 0.71% Shell 0.34% C++ 79.69% Cuda 5.66% MATLAB 0.90% M 0.01% Python 8.32% Protocol Buffer 1.61%

caffe_remove_bn's Introduction

Caffe

Build Status License

Caffe is a deep learning framework made with expression, speed, and modularity in mind. It is developed by the Berkeley Vision and Learning Center (BVLC) and community contributors.

This repository added a tool named caffe_remove_bn, which is designed to remove the BatchNorm and Scale layer inside the network topologies like ResNet, Inception v3/v4, etc. (Of course, ONLY for inference, as the inference uses the global mean and variance, which can be combined into the convolution layer)

It will take a trained model as input, and output a transformed model.

Usage example: .build_release/tools/remove_bn_layer.bin ResNet-50-deploy.prototxt ResNet-50-model.caffemodel bn_removed.prototxt bn_removed.caffemodel

Please note: Many special cases are not considered in the implementation. Please modifiy the code if needed.

Happy brewing!

Modifications

modified: include/caffe/net.hpp modified: src/caffe/net.cpp Added: tools/remove_bn_layer.cpp

License and Citation

Caffe is released under the BSD 2-Clause license. The BVLC reference models are released for unrestricted use.

Please cite Caffe in your publications if it helps your research:

@article{jia2014caffe,
  Author = {Jia, Yangqing and Shelhamer, Evan and Donahue, Jeff and Karayev, Sergey and Long, Jonathan and Girshick, Ross and Guadarrama, Sergio and Darrell, Trevor},
  Journal = {arXiv preprint arXiv:1408.5093},
  Title = {Caffe: Convolutional Architecture for Fast Feature Embedding},
  Year = {2014}
}

caffe_remove_bn's People

Contributors

shelhamer avatar jeffdonahue avatar yangqing avatar longjon avatar sguada avatar kloudkl avatar sergeyk avatar ronghanghu avatar qipeng avatar lukeyeager avatar flx42 avatar rbgirshick avatar philkr avatar dgolden1 avatar eelstork avatar mavenlin avatar jamt9000 avatar tnarihi avatar cypof avatar erictzeng avatar yosinski avatar mohomran avatar jyegerlehner avatar mtamburrano avatar netheril96 avatar ducha-aiki avatar fyu avatar kkhoot avatar timmeinhardt avatar ste-m5s avatar

Watchers

James Cloos avatar DL avatar  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.