Giter Site home page Giter Site logo

hikvision-research / sparseshiftlayer Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 4.0 131 KB

An official implementation of CVPR 2019 paper "All You Need Is a Few Shifts: Designing Efficient Convolutional Neural Networks for Image Classification".

License: Apache License 2.0

Python 77.33% C++ 6.43% C 3.32% Cuda 12.82% Shell 0.10%
image-classification imagenet lightweight-neural-network mlp-mixer shiftnet

sparseshiftlayer's Introduction

All You Need Is a Few Shifts: Designing Efficient Convolutional Neural Networks for Image Classification

This repo is the official implementation of CVPR2019 paper "All You Need Is a Few Shifts: Designing Efficient Convolutional Neural Networks for Image Classification".

Paper introduction

SSL

The comparison of Sparse Shift Layer (SSL) with other shift operations applied to feature maps.

Preparation

Prerequistes

  • Python 3.6
  • Pytorch 1.0
  • CUDA 8.0 or higher

Usage

Data folds structure

.ImageNetOrigin/
  └── train/
  |      ├── n01440764
  |      |      ├── n01440764_18.JPEG
  |      |      ├── n01440764_36.JPEG
  |      |      └── ...
  |      ├── n01443537
  |      └── ...
  └── val2/
         ├── n01440764
         |      ├── n01440764_18.JPEG
         |      ├── n01440764_36.JPEG
         |      └── ...
         ├── n01443537
         └── ...

Train

bash train_imagenet.sh

Eval

bash test_imagenet.sh

Main Results

Networks MAdds Prarms Model Weights Top-1 TrainLog
FE-Net 1.0x 301M 3.7M To-Be-Released 73.6 % log-file
FE-Net 1.0x + Autoaugment 301M 3.7M To-Be-Released 73.9 % log-file
FE-Net 1.375x 563M 5.9M To-Be-Released 75.7 % log-file
FE-Net 1.375x + Autoaugment 563M 5.9M To-Be-Released 76.6 % log-file

Citation

Please consider citing our paper if you find it useful for your research.

@inproceedings{Chen2019ShiftNet,
  author = {Weijie Chen, Di Xie, Yuan Zhang, Shiliang Pu},
  title = {All You Need is a Few Shifts: Designing Efficient Convolutional Neural Networks for Image Classification},
  booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
}

License

This project is released under the Apache 2.0 license. Other codes from open source repository follows the original distributive licenses.

Acknowledgement

We appreciate Xianfeng Li for transforming the source code from Caffe to Pytorch. If you have any problem about this work, please feel free to contact Xianfeng Li (lixianfeng6-at-hikvision.com) and Weijie Chen (chenweijie5-at-hikvision.com).

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.