Code Monkey home page Code Monkey logo

project's Introduction

Project

Tensorflow implementations of Iterative Pruning, K-means Quantization, Dynamic Surgery Network, Incremental Network Quantization

Codes are implemented according to reference paper and codes.

Masks and modified weights are produced on Single Machine.

Re-training process are conducted on Google Cloud

All hyperparameters are set in config.py except DNS(to replicate its open-sourse code on Caffe)

All codes except Analysis&Experiments part are documented.

densenet.py: essential DenseNet modified from https://github.com/LaurentMazare/deep-models/tree/master/densenet

densenetfinaltest.py: inference of DenseNet

Iterative Pruning

densenetfinalprune.py: produce masks & pruned weights

dnet_prune.ipynb: re-training of Iterative Pruning

K-means Quantization

densenetfinalkmeans.py: produce masks & K-Qed weights

dnet_kmeans.ipynb: re-training of codebooks after K-means Quantization

Dynamic Surgery Network

densenetfinalDNS.py: DNS

Incremental Network Quantization

densenetfinalinq.py: produce masks & INQed weights

dnet_INQ.ipynb: re-training of INQ

Combinations:

Pruning+INQ: INQPruning.ipynb

Pruning+K-Q: KmeansPruning.ipynb

Analysis&Experiments:

dnet_dns_analysis.ipynb

dnet_dns_analysis2.ipynb

dnet_INQ-analysis.ipynb

dnet_prune_analysis.ipynb

References:

https://github.com/gstaff/tfzip/tree/master/tfzip

https://github.com/garion9013/impl-pruning-TF

https://github.com/yiwenguo/Dynamic-Network-Surgery

https://arxiv.org/abs/1510.00149

https://arxiv.org/abs/1702.03044

https://arxiv.org/abs/1608.04493

project's People

Contributors

davidnewgate avatar

Watchers

 avatar  avatar

Forkers

lizhaodong

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.