Giter VIP home page Giter VIP logo

mxnet-shufflenet's Introduction

ShuffleNet V1&V2

this code is mxnet implementation of ShuffleNetV1 and ShuffleNetv2, For details, please read the original paper:
shufflenetv1
shufflenetv2
This code is based on farmingyard's implementation(https://github.com/farmingyard/ShuffleNet)

Code is test on MxNet 1.11.0

Installation

  1. Clone this repository, and we'll call the directory that you cloned mxnet-shufflenet as ${SHUFFLENET_ROOT}.
git clone https://github.com/Tveek/mxnet-shufflenet.git
  1. Install shuffle channel operator to MXNet:

    2.1 Clone MXNet and checkout to MXNet by

    git clone --recursive https://github.com/dmlc/mxnet.git
    git submodule update
    

    2.2 Copy operators in $(SHUFFLENET_ROOT)/source/shuffle_channel*.xxx by

    cp -r $(SHUFFLENET_ROOT)/operator/* $(MXNET_ROOT)/src/operator/contrib/
    

    2.3 Compile MXNet

    cd ${MXNET_ROOT}
    make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1
    

    2.4 Install the MXNet Python binding by

    cd python
    sudo python setup.py install 
    
  2. Python operator function are also in symbol file, so you can use it without above

Pretrained Models on ImageNet

  • RGB mean and std are used(rgb_mean=[123.68,116.779,103.939], rgb_std=[58.393,57.12,57.375])

  • The top-1/5 accuracy rates by using single random crop (crop size: 224x224, image size: 256xN)

Network Top-1 Top-5 model size
ShuffleNet_V1_1x3 63.94 85.27 7.1MB
ShuffleNet_V2_1 65.43 86.50 8.7MB

mxnet-shufflenet's People

Contributors

tveek avatar

Watchers

paper2code - bot 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.