google-coral / edgetpu-platforms

EdgeTPU support for other platforms, specifically Raspberry Pi Zero
Apache License 2.0
79 stars 11 forks source link

Edge TPU unofficial platforms

This repository holds auxiliary platform-related material related to Google Coral Edge TPU. Here you can find precompiled images, shared libraries and patches for using the USB Accelerator on additional platforms to the main supported ones.

DISCLAIMER: Please note that this repository is not officially supported by Google. These additional precompiled images and libraries are provided as is at best effort. We will try to keep these unofficial builds in sync with the officially supported ones, but they will likely be out of date.

Prebuilt images for Raspberry Pis

For convenience, we have uploaded prebuilt Raspbian images for Raspberry Pi Zero, Pi 3 and Pi 4. Simply write the image to an SD card, boot up your Pi, and connect the USB Accelerator. The images contain several examples that should work out of the box.

The download links are:

After you boot be sure to do the following two steps:

MacOS using Vagrant

The Vagrantfile in this repo was originally created to support macOS from a Linux VM under VirtualBox. This is no longer necessary because the Coral USB Accelerator now officially supports macOS (and Windows 10), since January 2020.

To use the USB Accelerator on macOS, simply follow the USB Accelerator get started guide.

Unsupported platforms install wheels

We recommend using the above images but if you want to install edgetpu libraries from scratch onto a Pi Zero image you can also download a modified installation script for Raspberry Pi Zero and Zero W.

  1. Go to the release page of this repo.
  2. Download edgetpuapi<platform>_<version>.tar.gz with platform matching the desired device platform and copy the file to your device.
  3. Untar it and run the install.sh script inside.

For example for Raspberry Pi Zero download edgetpu_api_rpi0_1.9.2.tar.gz

tar xzf edgetpu_api_rpi0_1.9.2.tar.gz
cd edgetpu_api
bash ./install.sh

Follow the rest of the instructions on the Coral website just like on any other platform.