Giter Club home page Giter Club logo

quantization-networks-cifar10's Introduction

Quantization Networks on CIFAR-10

Overview

This repository contains the training code of Quantization Networks introduced in the CVPR 2019 paper: Quantization Networks.

Our implementation is a modified version of the original implementation. The main changes are:

  1. Support of CIFAR-10 and MNIST dataset, besides ImageNet.
  2. A unified training script for full-precision, weight quantization and activation quantization.
  3. Training curve visualization using Tensorboard.
  4. Clustering before quantization training, needless of manual clustering.
  5. Freezing of BN layer during activation quantization training (idea borrowed from FQN).
  6. Removal of outlier in clustering using 3-sigma rule (also borrowed from FQN).

Usage

First, please create a compatible Python environment.

Environments

Here are our environment configurations during development.

  • Ubuntu 18.04
  • Python 3.7
  • opencv-python
  • numpy 1.17.4
  • pytorch 1.3.0
  • torchvision 0.4.2
  • Tensorboard 2.0.0
  • argparse 1.1
  • logging 0.5.1.2

Preparing Data

Please refer to PREPARE_DATA.md.

Getting Started

Please refer to GET_STARTED.md.

Our Experimental Results

Please refer to EXPERIMENTS.md.

License

This repository is forked from aliyun/alibabacloud-quantization-networks and keep its Apache 2.0 license.

Citation

Please cite the paper if it helps your research:

@inproceedings{yang2019quantization,
  title={Quantization Networks},
  author={Yang Jiwei, Shen Xu, Xing Jun, Tian Xinmei, Li Houqiang, Deng Bing, Huang Jianqiang and Hua Xian-sheng},
  booktitle={CVPR},
  year={2019}
}

quantization-networks-cifar10's People

Contributors

alibaba-oss avatar jasonustc avatar linkinpark213 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

haoyz

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.