All Projects → kunglab → Branchynet

kunglab / Branchynet

Projects that are alternatives of or similar to Branchynet

Spatialde
Test genes for Spatial Variation
Stars: ✭ 74 (-2.63%)
Mutual labels:  jupyter-notebook
Python Tutorials
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Understaing Datasets Estimators Tfrecords
Try to use tf.estimator and tf.data together to train a cnn model.
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Age Gender Estimation
Keras implementation of a CNN network for age and gender estimation
Stars: ✭ 1,195 (+1472.37%)
Mutual labels:  jupyter-notebook
Dl Visualization
This is the source code for the animations in the series "Visualizing Deep Learning"
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Cs189 Su18
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Numpywren
Serverless Scientific Computing
Stars: ✭ 75 (-1.32%)
Mutual labels:  jupyter-notebook
Suspeitando
Projeto de análise de contratos com suspeita de superfaturamento e má qualidade na prestação de serviços.
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Eigenvectors From Eigenvalues
PyTorch implementation comparison of old and new method of determining eigenvectors from eigenvalues.
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Tracktor
Python and OpenCV based object tracking software
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Docker Demo Images
Demo images for use in try.jupyter.org and tmpnb.org
Stars: ✭ 75 (-1.32%)
Mutual labels:  jupyter-notebook
Ml2021 Spring
李宏毅 (Hung-Yi Lee) 機器學習 Machine Learning 2021 Spring
Stars: ✭ 69 (-9.21%)
Mutual labels:  jupyter-notebook
Kelime kok ayirici
Derin Öğrenme Tabanlı - seq2seq - Türkçe için kelime kökü bulma web uygulaması - Turkish Stemmer (tr_stemmer)
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Invitation to julia
Stars: ✭ 75 (-1.32%)
Mutual labels:  jupyter-notebook
Machine Learning For Beginners
Start writing machine learning code in just 10 hours
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Machinelearning Detecting Twitter Bots
Custom classification algorithm to sense the bots vs human on social media space like twitter
Stars: ✭ 75 (-1.32%)
Mutual labels:  jupyter-notebook
Feature Detection
Oriented FAST and Rotated BRIEF using opencv
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Battle tested
Fully automated python fuzzer built to test if code actually is production ready in seconds.
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Pythondata
python数据分析代码资料
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook
Data Science Bowl 2018
DATA-SCIENCE-BOWL-2018 Find the nuclei in divergent images to advance medical discovery
Stars: ✭ 76 (+0%)
Mutual labels:  jupyter-notebook

BranchyNet: Fast Inference via Early Exiting from Deep Neural Networks

Deep neural networks are state of the art methods for many learning tasks due to their ability to extract increasingly better features at each network layer. However, the improved performance of additional layers in a deep network comes at the cost of added latency and energy usage in feedforward inference. As networks continue to get deeper and larger, these costs become more prohibitive for real-time and energy-sensitive applications. To address this issue, we present BranchyNet, a novel deep network architecture that is augmented with side branches. The architecture allows prediction results for a large portion of test samples to exit the network early via these branches when samples can already be inferred with high confidence. BranchyNet exploits the observation that features learned at an early layer of a network may often be sufficient for the classification of many data points. For more difficult samples, which are expected to be infrequent, BranchyNet will use further or all network layers to provide the best likelihood of correct prediction. We study the BranchyNet architecture using several well-known networks (LeNet, AlexNet, ResNet) and datasets (MNIST, CIFAR10) and show that it can both improve accuracy and significantly reduce the inference time of the network.

This repository containing the code to reproduce result found in "BranchyNet: Fast Inference via Early Exiting from Deep Neural Networks" paper.

If you use this codebase, please cite:

@article{teerapittayanonbranchynet,
  title={BranchyNet: Fast Inference via Early Exiting from Deep Neural Networks},
  author={Teerapittayanon, Surat and McDanel, Bradley and Kung, HT}
}

Requirements

  • A machine with a decent GPU
  • Python 2.7

Python Dependencies

  • chainer==1.17.0
  • matplotlib
  • dill
  • scikit-image
  • scipy
  • scikit-learn

Quickstart

  1. Download data.npz from https://drive.google.com/file/d/0Byyuc5LmNmJPWUc5dVdUSms3U1E/view?usp=sharing and put it at datasets/data/pcifar10/data.npz
  2. Run script
./get_results.sh

Or take a look at the ipython notebooks.

Run with Docker

  1. Download and install Docker https://www.docker.com/products/docker-desktop
  2. Run
./docker/build.sh
./docker/shell.sh
  1. After you are inside the container's shell, run
./get_results.sh

For GPU support, you may need to customize Dockerfile to support CUDA. See https://docs.chainer.org/en/v1.17.0/install.html for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].