Home

Awesome

Benchmarking Machine Learning on the Edge

Graph of benchmarked inferencing time in milli-seconds for the for MobileNet v2 model and the MobileNet v1 SSD 0.75 depth model, trained using the Common Objects in Context (COCO) dataset with an input size of 300×300. Inferencing time in milli-seconds for the for MobileNet v2 model (left hand bars, blue) and the MobileNet v1 SSD 0.75 depth model (right hand bars, green), trained using the Common Objects in Context (COCO) dataset with an input size of 300×300.

BoardFrameworkConnectionMobileNet v2 (ms)MobileNet v1 (ms)
Jetson NanoTensorFlow309.3276.0
Jetson NanoTensorRT72.361.6
Coral Dev BoardEdge TPU20.915.7
Coral USB AcceleratorEdge TPUUSB258.149.3
Coral USB AcceleratorEdge TPUUSB318.214.9
Movidius NCSOpenVINOUSB2204.5115.7
Movidius NCSOpenVINOUSB3176.488.4
Intel NCS2OpenVIINOUSB2118.687.2
Intel NCS2OpenVINOUSB380.452.8
Raspberry Pi 3, Model B+TensorFlow654.0480.3
Raspberry Pi 4TensorFlow483.5263.9
Raspberry Pi 5TensorFlow148.966.2
Raspberry Pi 3, Model B+TensorFlow Lite379.6271.5
Raspberry Pi 4TensorFlow Lite112.682.7
Raspberry Pi 5TensorFlow Lite23.516.9

The latest results are presented in the article benchmarking the Raspberry Pi 5.

NOTE: See the documentation directory for instructions on how to install TensorFlow and TensorFlow Lite, and how to run the benchmarking scripts on your hardware.

Getting Started with Google's Edge TPU

NOTE: These guides are likely to be out of date and are in need of updating.

Getting Started with Intel's Movidius

NOTE: These guides are likely to be out of date and are in need of updating.

Getting Started with Nvidia's GPUs

NOTE: These guides are likely to be out of date and are in need of updating.

Benchmarking Machine Learning

TO DO

The benchmark code need to be updated to run the latest versions of the inferenecing frameworks:

NOTE: The benchmark_edgetpu.py script currently uses the deprecated edgetpu library, and needs to be updated to use the pycoral library. However even that library is no longer properly supported by Google.

Licence

The code in this repository is licensed under the MIT licence.

Copyright © 2019-2024 Alasdair Allan <alasdair@babilim.co.uk>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.