Giter VIP home page Giter VIP logo

pycoral's Introduction

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

pycoral's People

Contributors

dmitriykovalev avatar manoj7410 avatar hjonnala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.