Giter Site home page Giter Site logo

cgcl-codes / layup Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 3.0 8.31 MB

Layup provides a memory optimization strategy for CNNs based on BVLC Caffe.

License: Other

CMake 2.83% Makefile 0.66% Shell 0.48% Dockerfile 0.08% C++ 80.35% Cuda 5.60% MATLAB 0.89% Python 9.12%

layup's Introduction

Layup

Introduction

Layup provides a memory optimization strategy for CNNs based on BVLC Caffe(https://github.com/BVLC/caffe). It achieves average 66% reduction of runtime memory usage over BVLC Caffe, and can even train ResNet with 2504 layers (batch size = 16) on one K40m GPU (12GB memory).

  • We test some benchmark networks (AlexNet, VGG-16, GoogLeNet, ResNet-34, ResNet-50, ResNet-101, DenseNet-121, Inception-V4) with CUDA 7.5 and cuDNN v5.
  • If you want to run extreme-deep networks, such as ResNet-1001, please make sure that the node has enough CPU memory. (Our test environment is 256GB)

Download and Build

The prerequisites are the same with BVLC Caffe, more details please visit http://caffe.berkeleyvision.org/installation.html.

Run the following command to download and build Layup.

// git clone this repository
// then adjust Makefile.config (for example, if using cuDNN, uncomment the USE_CUDNN := 1)

make all -j8

Example

You can use the command line (c++) to run CNN models. The usage is not different from BVLC Caffe.

// Take GoogLeNet as an example
// Prepare data and adjust the data source in train_val.prototxt
// Run the following command to train GoogLeNet

./examples/imagenet/train_googlenet.sh --gpu 0

Support Or Contact

If you have any questions, please contact Yang Ma ([email protected]).

layup's People

Contributors

my777777 avatar

Stargazers

 avatar

Watchers

 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.