GithubHelp home page GithubHelp logo

terrencewayne / 18663_project_fbnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hpnair/18663_project_fbnet

0.0 1.0 0.0 27.88 MB

Class Project for 18663 - Implementation of FBNet (Hardware-Aware DNAS)

License: MIT License

Python 15.26% JavaScript 0.29% CSS 81.34% HTML 3.10%

18663_project_fbnet's Introduction

Hardware Aware Neural Network Architecture Search using FBnets for Raspberry pi

Arxiv paper explaining training - https://arxiv.org/abs/1906.07214

FBNet

  • Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search Implementation of FBNet with PyTorch

Salient features

  • Includes energy term along with latency term in the loss function
  • Loss = CE(w,a) + alpha * (Lat(a) ^ beta) + gamma * (ENER(a) ^ delta)
  • Use alpha and beta to tune latency related loss.
  • Use gamma and delta to tune energy related loss.
  • Tested over Raspberry Pi.
  • Supports Tensorboard for accuracy, latency and energy visualization as the FbNet trains (logdir = arg provided to "-tb-logs")
  • Energy profiling performed using Power Jive.
  • Results (on Raspberr Pi 3B):
Model Accuracy(%) Latency(s) Energy(J)
MobileNetV2 92.4 7.1 18.24
CondenseNet 91.1 4.83 9.28
Ours(HANNA) 87.7 2.88 4.79

The following implementation uses stride values that fit for CIFAR10. Feel free to change stride values for ImageNet as mentioned in the paper. We have used

Relevant graphs

  • To check our implementation, we have trained 30 different models for Raspberry Pi with varying values of alpha, beta, gamma and delta
  • Each colour on the bubble chart represents a particular model and the size of the bubble represents accuracy.

![alpha-beta-latency-accuracy] (https://github.com/hpnair/18663_Project_FBNet/blob/master/Alpha%2C%20Beta%20vs%20Latency%20.png)

![gamma-delta-energy-accuracy] (https://github.com/hpnair/18663_Project_FBNet/blob/master/Gamma%2C%20Delta%2C%20Energy.png) latency-energy-accuracy

Webpage for Training

project-website

Example Tensorboard visualization

Tensorboard-log-visualization

18663_project_fbnet's People

Contributors

saivineethkallurusrinivas avatar vinayvid avatar hpnair avatar

Watchers

James Cloos 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.