Coder Social home page Coder Social logo

nunoedgarhubsoftphotoflow / alibabacloud-quantization-networks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aliyun/alibabacloud-quantization-networks

0.0 1.0 0.0 26 KB

alibabacloud-quantization-networks

License: Apache License 2.0

Python 99.38% Shell 0.62%

alibabacloud-quantization-networks's Introduction

Quantization Networks

Overview

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

In this work, we provide a simple and uniform way for weights and activations quantization by formulating it as a differentiable non-linear function. The quantization function is represented as a linear combination of several Sigmoid functions with learnable biases and scales that could be learned in a lossless and end-to-end manner via continuous relaxation of the steepness of Sigmoid functions.

Extensive experiments on image classification and object detection tasks show that our quantization networks outperform state-of-the-art methods.

Run environment

  • Python 3.5
  • Python bindings for OpenCV
  • Pytorch 0.3.0

Usage

Download the ImageNet dataset and decompress into the structure like

dir/
  train/
    n01440764_10026.JPEG
    ...
  val/
    ILSVRC2012_val_00000001.JPEG
    ...

To train a weight quantization model of ResNet-18, simply run

sh quan-weight.sh

After the training, the result model will be stored in ./logs/quan-weight/resnet18-quan-w-1.

Other training processes can be found in the paper.

License

  • Apache License 2.0

Citation

If you use our code or models in your research, please cite with:

@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}
}

alibabacloud-quantization-networks's People

Contributors

alibaba-oss avatar jasonustc avatar

Watchers

 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.