GithubHelp home page GithubHelp logo

edlab's Introduction

EDLAB (Edge Deep Learning Accelerator Benchmark)

EDLAB is a benchmarking evalution tool, developed by the team of Weichen Liu at Nanyang Technological University with the collabration of HP Inc, to automatically evaluate different edge deep learning platforms. So far, EDLAB supports the following devices:

  • Desktop GPU
  • Desktop CPU
  • NVIDIA Jetson TX2
  • Google Edge TPU
  • Intel Neural Compute Stick 2

EDLAB

How to Use

Clone this tool into your devices (PC, TX2, TPU/NCS2 host, etc.).

git clone https://github.com/HPInc/EDLAB.git

Execute the run.sh script.

cd ./EDLAB
bash run.sh <devices_name> <model_name>

Devices name list can be found in the run.sh and model name list is written down in this config.properties. The left term of each model first line is the model short name, which is feed to the run.sh.

Add model

You can add a model to this tool by the following steps.

First, create the folder: EDLAB/models/<model_name>, and put the frozen.pb file into this folder.

cd ./EDLAB
mkdir ./models/<model_name>
mv PATH/TO/frozen.pb ./models/<model_name>

Second, write the information of this model into config.properties.

<model_name>="classification/detection"
<model_name>_name="name_of_your_frozen.pb"
<model_name>_dataset="<dataset_name>"
# For classification:
<model_name>_preprocessing="inception/vgg"
<model_name>_labelsoffset="0/1"

Last, create the folder: EDLAB/dataset/<dataset_name> and put all images and ground truth in your data set into this folder.

cd ./EDLAB
mkdir ./dataset/<dataset_name>
mv PATH/TO/ALLIMGS/* ./dataset/<dataset_name>
mv PATH/TO/GROUND_TURTH ./dataset/<dataset_name>.gtruth

Results

After your command,

bash run.sh <devices_name> <model_name>

all results will be saved in this result.csv, in which EDP means the energy-delay product and LEDP mean loss-energy-delay product. Loss equals claimed accuracy minus the accuracy we got, which aims to find the accuracy loss of each edge accelerator under the same original model.

The models we provided comes from here for classification and here for detection, where you can find the claimed accuracy of each model.

The imagenet_test data set we provided is the first 5000 images from IMAGENET_2012 and the coco2014_test data set comes from COCO 14 minival set.

Example results

Project Information

Copyright (c) HP-NTU Digital Manufacturing Corporate Lab, Nanyang Technological University, Singapore.

If you use the tool or adapt the tool in your works or publications, you are required to cite the following reference:

@article{kong2021edlab,
  title={EDLAB: A Benchmark for Edge Deep Learning Accelerators},
  author={Kong, Hao and Huai, Shuo and Liu, Di and Zhang, Lei and Chen, Hui and Zhu, Shien and Li, Shiqing and Liu, Weichen and Rastogi, Manu and Subramaniam, Ravi and Athreya, Madhu and Lewis, M. Anthony},
  journal={IEEE Design \& Test},
  year={2021},
  publisher={IEEE}
}

Contributors: Hao Kong, Shuo Huai, Di Liu, Lei Zhang, Hui Chen, Shien Zhu, Shiqing Li, Weichen Liu, Manu Rastogi (HP), Ravi Subramaniam (HP), Madhu Athreya (HP), M. Anthony Lewis (HP).

If you have any comments, questions, or suggestions please create an issue on github or contact us via email.

Hao Kong <kong [DOT] hao [AT] ntu [DOT] edu [DOT] sg>

It is a contribution made from the HP-NTU Corp Lab. 2 public mirror repositories for it: HP Inc., ntuliuteam.

edlab's People

Contributors

classicvalues avatar mend-bolt-for-github[bot] avatar shuo-huai avatar wrighto avatar

Stargazers

 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.