GithubHelp home page GithubHelp logo

ootzk / silhouette Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

Master-Thesis Project: Region-based Quantization using global Silhouette

deep-neural-networks quantization-algorithm attention-mechanism region-based

silhouette's Introduction

Silhouette

Notice

Please access old repository until code-cleaning and project handover is ready...

Overview

Overview
Above figure shows the overview of project.
We install Auxiliary Network at arbitrary layer of Main Network(such as ResNet) architecture. (but highly recommended to install at the beginning of the main network so that many layers can perform region-based quantization)
We referred Attention Branch Network's module design, so Auxiliary Network is consist of 1 channel 1x1 convolution - batch normalization - sigmoid (they used as activation instead of ReLU because this showed better accuracy).
In detail, at forward path, flowing feature maps (size: B * C * H * W) at arbitrary layer are passed into Auxiliary Network and these are processed as Global Silhouette (size: B * 1 * H * W), and these are referred at behind layers.

Region-based Quantization
Extracted Global Silhouette are interpolated to fit the size of each behind layer's feature map.
Interpolated Global Silhouette are converted into Region Separating Bit-mask with preset policy. For example, '2bit 50%, 3bit 30%, 4bit 20%' in above figure. This means lowest 50% value region(violet) of feature map are quantized into 2bit, and highest 20% value region(yellow) of feature map are quantized into 4bit, and remained 30% value region(green) of feature map are quantized into 3bit. This policy is customizable by level of quantization.
All other parts are same as original main network's architecture, except the activation function has changed PACT to maintain the accuracy with extremely low bit-precision.

silhouette's People

Contributors

ootzk 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.