Giter Club home page Giter Club logo

dropout's Introduction

Customizable and Effective Dropout

version python pytorch

This repository contains code for the paper Effective and Efficient Dropout for Deep Convolutional Neural Networks. Customizable and effective Dropout blocks have been proposed to support complex analytics with Convolutional Neural Networks.

The illustration of convolutional transformations with 4 structural levels of dropout:

  1. Dropout, or drop-neuron, gates input neurons in operation 1;
  2. Drop-channel replaces identity mapping in operation 2 with operation 3, random sampling and gating on channels;
  3. Drop-path is introduced to F conv in operation 4;
  4. Drop-layer to the shortcut connection in operation 5.

The illustration of the example proposed building block:

The repo includes:

  1. example models (/models)
  2. codes for dropout training (train.py)
  3. codes to support different structural levels of dropout (models/convBlock.py)
    • supporting effective dropout with customizable building blocks (models/convBlock/conv_block)

Training

Dependencies
* python 3.7.3
* pytorch 1.2.0
* torchvision 0.4.0
Model Training
Example training code:
CUDA_VISIBLE_DEVICES=0 python train.py --net_type=resnet --depth 110 --arg1 1 --epoch 164 --weight_decay 1e-4 --block_type 0 --drop_type=1 --drop_rate=0.1 --exp_name resnet_dropChannel --report_ratio

Please check help info in argparse.ArgumentParser (train.py) for more details 

Contact

To ask questions or report issues, please open an issue here or can directly send us an email.

dropout's People

Contributors

solopku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

runngezhang-jx

dropout's Issues

Could I using your dropout without training the model from scratch?

I notice in your experiments, you train the whole networks from end2end on several datasets. You know, in most computer vision applications, usually, we will finetune the ResNet or other networks. I wonder whether we could insert your dropout into available ResNet, for example resnet50, and initialize the networks from pretained models and finetune it?

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.