• Stars
    star
    336
  • Rank 124,804 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created almost 4 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python API for ML inferencing and transfer-learning on Coral devices

PyCoral API

This repository contains an easy-to-use Python API that helps you run inferences and perform on-device transfer learning with TensorFlow Lite models on Coral devices.

To install the prebuilt PyCoral library, see the instructions at coral.ai/software/.

Note: If you're on a Debian system, be sure to install this library from apt-get and not from pip. Using pip install is not guaranteed compatible with the other Coral libraries that you must install from apt-get. For details, see coral.ai/software/.

Documentation and examples

To learn more about how to use the PyCoral API, see our guide to Run inference on the Edge TPU with Python and check out the PyCoral API reference.

Several Python examples are available in the examples/ directory. For instructions, see the examples README.

Compilation

When building this library yourself, it's critical that you have version-matching builds of libcoral and libedgetpuโ€”notice these are submodules of the pycoral repo, and they all share the same TENSORFLOW_COMMIT value. So just be sure if you change one, you must change them all.

For complete details about how to build all these libraries, read Build Coral for your platform. Or to build just this library, follow these steps:

  1. Clone this repo and include submodules:

    git clone --recurse-submodules https://github.com/google-coral/pycoral
    

    If you already cloned without the submodules. You can add them with this:

    cd pycoral
    
    git submodule init && git submodule update
    
  2. Run scripts/build.sh to build pybind11-based native layer for different Linux architectures. Build is Docker-based, so you need to have it installed.

  3. Run make wheel to generate Python library wheel and then pip3 install $(ls dist/*.whl) to install it

More Repositories

1

project-posenet

Human Pose Detection on EdgeTPU
Python
544
star
2

edgetpu

Coral issue tracker (and legacy Edge TPU API source)
C++
411
star
3

examples-camera

Small code snippets that show how to stream camera images to a Coral device.
Python
346
star
4

project-bodypix

BodyPix model demo application for Google Coral
Python
272
star
5

tflite

Examples using TensorFlow Lite API to run inference on Coral devices
Python
180
star
6

tutorials

Colab/Jupyter tutorials about training TensorFlow models for Edge TPU, and other tutorials
Jupyter Notebook
171
star
7

libedgetpu

Source code for the userspace level runtime driver for Coral.ai devices.
C++
170
star
8

project-keyword-spotter

Audio Keyphrase Detector
Python
133
star
9

example-object-tracker

Python
104
star
10

coralmicro

Source code for Coral Dev Board Micro
C++
95
star
11

edgetpu-platforms

EdgeTPU support for other platforms, specifically Raspberry Pi Zero
Shell
75
star
12

libcoral

C++ API for ML inferencing and transfer-learning on Coral devices
C++
72
star
13

project-teachable-sorter

Python
48
star
14

test_data

Trained and compiled TF Lite models, and other testing data for Coral devices
Starlark
43
star
15

project-birdfeeder

Python
38
star
16

webcoral

JavaScript
33
star
17

project-banana-robo

Python
29
star
18

project-teachable

Example Project: Teachable Machine
Python
26
star
19

electricals

Electrical designs for coral.ai projects
HTML
26
star
20

crosstool

Starlark
19
star
21

example-multiple-edgetpus

C++
14
star
22

project-cloud-monitor

Python
12
star
23

demo-manufacturing

C++
11
star
24

aiy-maker-kit

Simple Python API for ML inferencing with TF Lite and Coral Edge TPU
Python
9
star
25

imprinting-training

Imprinting training scripts of tensorflow.
Python
9
star
26

aiy-maker-kit-tools

Build scripts to create RPI OS system image for AIY Maker Kit
Python
6
star
27

mechanicals

Reference mechanical designs for coral.ai projects
5
star
28

py-repo

Python
4
star
29

demo-multi-video-stream

Demo showcasing processing multiple videostreams in parallel on system with 8 EdgeTPUs
C++
3
star
30

coralmicro-out-of-tree-sample

C++
2
star
31

coralmicro-littlefs-fuse

C
1
star