Skip to content

basic_bot.debug.test_ai-edge-litert

This diagnostic script will test the installation and setup of the Google ai-edge-litert

It uses opencv to open the test image file and then runs the model inference on the image.

Needs to have ai-edge-litert from Google installed:

python -m pip install ai-edge-litert
Unfortunately the package will not install on Macs or Windows. It will install on Linux and Raspberry Pi (arm64).

ai-edge-litert is suppose to be the future replacement of the tflite_runtime package.

Usage:

python -m basic_bot.debug.test_ai-edge-litert