Giter Site home page Giter Site logo

liuguoyou / max-drop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sungheonpark/max-drop

0.0 3.0 0.0 36 KB

Source code for 'Analysis on the Dropout Effect in Convolutional Neural Networks', ACCV 2016

Protocol Buffer 70.17% C++ 15.53% Cuda 14.30%

max-drop's Introduction

Max-drop

Source codes for 'Analysis on the Dropout Effect in Convolutional Neural Networks', ACCV 2016

Installation instructions

The code is tested on Windows OS only.

  1. Merge the proto file with your own caffe maintainers. Caffe.proto in this repository was forked from the BVLC Caffe in Apr 4, 2016. max_drop_param, spatial_dropout_param, stochastic_dropout_param are newly added parameters. You may need to change layer-specific ID appropriately.

  2. Add the source files (.hpp, .cpp, .cu) to the project.

  3. Compile and build.

Usage

  1. Max-drop

MaxDrop layer implements feature-wise max-drop and channel-wise max-drop proposed in the paper.

  • prob: the probability of dropping the maximum activation to zero. (default: 0.1)

  • kernel_h, kernel_w: size of dropping window (height and width). For instance, if kernel_h and kernel_w are set to 3, the activations of the 3x3 region centered at the maximum activation are dropped to 0. (default: 1)

  • dim_option: Specify along which dimension the maximum should be found. (default: 1)

    • feature-wise max-drop : Find the maximum activation within each feature map (dim_option: 1)

    • channel-wise max-drop : Find the maximum activation across all feature maps in the same spatial position (dim_option: 2 or other integer)

  1. Stochastic Dropout

StochasticDropout layer implements stochastic dropout proposed in the paper.

  • type: select the type of probability distribution (default: 0)

    • type: 0 : uniform distribution

    • type: 1 : normal distribution

  • prob_arg1, prob_arg2 : arguments for the probability distribution. For the case of uniform distribution, dropping probability is drawn from U(prob_arg1, prob_arg2). For the case of normal distribution, dropping probability is drawn from N(prob_arg1, prob_arg2).

  1. Spatial Dropout

SpatialDropout layer is the implementation of spatial dropout proposed in ''Tompson et al., 'Efficient Object Localization Using Convolutional Network', CVPR 2015''

  • prob: Probability that drop the entire feature map. (default: 0.5)

max-drop's People

Contributors

sungheonpark avatar

Watchers

James Cloos avatar 刘国友 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.