Guest author Sam Sterckval brings deep learning to low-power devices as he showcases a range of AI-capable edge devices with varying processing power and cost including Raspberry Pi, NVIDIA Jetson Nano, Google Coral, Intel Movidius, PYNQ-Z2 FPGA, opening the doors for robotics and maker projects.
Go through the code in the following order:
- benchmark.py: This script will make a prediction on the cat.jpg file 250 times and measure how long it takes to run.
- benchmark_tflite.py: This script will make a prediction on the cat.jpg file 250 times using a TensorFlow Lite model and measure how long it takes to run.
- benchmark_edgetpu.py: This script can make a prediction on the cat.jpg file 250 times on a Raspberry Pi and measure how long it takes to run.
- benchmark_jetson.py: This script can make a prediction on the cat.jpg file 250 times on a Jetson Nano and measure how long it takes to run.
Please note that all the examples on edge devices showcased above work only on TensorFlow 1.x
as of now.