Git Product home page Git Product logo

slr's Introduction

SLR: Sparse Low Rank Factorization for Deep Neural Network Compression

The repository is implementation of our work in "Sparse Low Rank Factorization for Deep Neural Network Compression", Elsevier Neurocomputing, 2020

Installation Requirements:

  1. Python 3.6 or above
  2. Tensorflow 1.4.0
  3. Keras 2.0.1
  4. Pillow
  5. Opencv-python

Datasets:

  1. Cifar10 - Downloaded directly from Keras
  2. Cifar100- Downloaded directly from Keras
  3. Dogs vs Cats- Can be downloaded from https://www.microsoft.com/en-us/download/details.aspx?id=54765 or https://www.kaggle.com/c/dogs-vs-cats/data
  4. MNIST - Downloaded directly from Keras
  5. Oxford102 - Can be downloaded from http://www.robots.ox.ac.uk/~vgg/data/flowers/102/

Instructions:

  1. Each folder contain compression codes for SVD, SLR-w, SLR-a, SLR-c
  2. Datasets for Dogs vs Cats and Oxford102 can be downloaded and kept inside a folder /data/
  3. Each model can be trained using their corresponding train.py file and further used for compression.
  4. Parameters rank k, sparsity rate sr and reduction rate rr can be customized within the python files.

slr's People

Contributors

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