Code Monkey home page Code Monkey logo

progressive_stochastic_binarization's Introduction

Progressive Stochastic Binarization of Deep Networks

This repository is the code for the paper: Progressive Stochastic Binarization.

@article{corr/abs-1904-02205,
  title     = {Progressive Stochastic Binarization of Deep Networks},
  author    = {David Hartmann and Michael Wand},
  journal   = {CoRR},
  volume    = {abs/1904.02205},
  year      = {2019},
  url       = {http://arxiv.org/abs/1904.02205},
}

Setup

  1. Make sure you have Tensorflow v1.13.1 installed.
  2. Install python requirements:
    pip install --user -r requirements.txt
    
  3. Prepare the Imagenet-Dataset (as .tfrecords) as described in https://github.com/tensorflow/models/tree/master/official/resnet
  4. Place the tfrecords of Imagenet in ./download/imagenet/

for the ResNet18-Tests

  1. Train a ResNet18 from official Tensorflow-Models https://github.com/tensorflow/models/tree/master/official/resnet
  2. Place the Checkpoints in ./ckpts_imgn/resnet18_slim

for the Classification Models

  1. Run for every model from https://github.com/qubvel/classification_models/tree/master/classification_models that you want to evaluate the download script. E.g. for resnet50v2 run:
    py py/download_and_convert_keras_model.py resnet50v2
    

Experiments

To run the experiments that produce the output to the tables of the paper run the scripts from the base directory. For instance: sh experiments/test_attention.sh

General Useage

Please check the experiments for example scripts or check the optional arguments by

python bitnetwork.py --help

progressive_stochastic_binarization's People

Stargazers

liuyu avatar IronMan avatar  avatar David Hartmann avatar S. Brodehl avatar

Watchers

James Cloos avatar S. Brodehl avatar David Hartmann avatar 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.