Use docker for Coral TPU

Yiling Liu
1 min readDec 12, 2019

--

I want to test Coral dev board code but currently I don’t have a device with me at hand. Here is what I did.

I downloaded a debian image from docker hub.

Used apt-get update and installed git and sudo.

RUN apt-get update && apt-get install -y git

Install edge TPU on your Debian

The Edge TPU Compiler (edgetpu_compiler) is a command line tool that compiles a TensorFlow Lite model (.tflite file) into a file that's compatible with the Edge TPU. This page describes how to use the compiler and a bit about how it works.

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list

sudo apt-get update

sudo apt-get install edgetpu

--

--

Yiling Liu
Yiling Liu

Written by Yiling Liu

Creative Technologist, ex-googler

No responses yet