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.
In this post, I will introduce how to use Coral EdgeTPU USB Accelerator with macOS.
$ 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
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.
Pre-trained MobileNet model + OpenCV
With VirtualBox sometimes I got errors on runtime, but so far with macOS I don't have any issues.