loading...

Use Coral EdgeTPU USB Accelerator on macOS

kojikanao profile image Koji (he/him) ・1 min read

Last year I posted the following to use a Coral EdgeTPU USB Accelerator since it only supported Debian based OS like Ubuntu and Raspbian etc.

However, Google has announced that Coral EdgeTPU USB Accelerator supports macOS and Windows.
https://coral.ai/news/updates-01-2020

In this post, I will introduce how to use Coral EdgeTPU USB Accelerator with macOS.

Steps

1. Install runtime

$ curl -O https://dl.google.com/coral/edgetpu_api/edgetpu_runtime_20200128.zip
$ unzip edgetpu_runtime_20200128.zip
$ cd edgetpu_runtime
$ sudo bash install.sh
or
$ chmod 755 install.sh && bash install.sh

2. Install python package

In this post, I will install cp36 since I'm using python 3.6

pip install https://dl.google.com/coral/edgetpu_api/edgetpu-2.13.0-cp36-cp36m-macosx_10_14_x86_64.whl

If you are using 3.5/3.7, you can find out the link here

After finish these 2 steps, you can try sample program.
https://coral.ai/docs/accelerator/get-started/#3-run-a-model-using-the-tensorflow-lite-api

Pre-trained MobileNet model + OpenCV
With VirtualBox sometimes I got errors on runtime, but so far with macOS I don't have any issues.

Alt Text

Discussion

pic
Editor guide
Collapse
twitmyreview profile image
Priyab Dash

HI how to get one Coral EdgeTPU USB online

Collapse
kojikanao profile image