ChanganVR / ConstraintAwareCompression

[ECCV18] Constraint-Aware Deep Neural Network Compression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Constraint-Aware Deep Neural Network Compression

Given a real-time operational constraints, this library can automatically compress the network to satisfy the constraint while preserving the accuracy. This library is built on top of SkimCaffe, which has implemented direct sparse convolution operations and has an effective speedup given an input sparse network. This framework can be applied to different constraint types(latency, memory size), different network(Alexnet, Resnet, Googlenet) and different datasets(ImagenNet, DTD).

For more technical details, please refer to the paper.

Framework Overview

Usage

  1. First follow the build-up instructions in SkimCaffe to build SkimCaffe.
  2. Modify the cfp.config file to adapt to your own need(constraint values).
  3. Run training in root directory:
python2 main.py
  1. To visualize the training result, specify the output directory:
python2 pruning/visualize_cbo_results.py [OUTPUT_DIR]

Results

Visualization of sampled data points in the first exponential cooling step

sampling

Citation

If you use this code or ideas from the paper for your research, please cite our paper:

@InProceedings{Chen_2018_ECCV,
author = {Chen, Changan and Tung, Frederick and Vedula, Naveen and Mori, Greg},
title = {Constraint-Aware Deep Neural Network Compression},
booktitle = {The European Conference on Computer Vision (ECCV)},
month = {September},
year = {2018}
}

About

[ECCV18] Constraint-Aware Deep Neural Network Compression

License:Other


Languages

Language:C++ 51.0%Language:C 29.3%Language:Python 5.6%Language:Fortran 4.2%Language:Cuda 3.1%Language:Makefile 2.6%Language:Shell 1.6%Language:MATLAB 1.3%Language:CMake 1.2%Language:Gnuplot 0.2%Language:Dockerfile 0.0%Language:Batchfile 0.0%Language:M 0.0%