Support ai-edge-litert as TFLite runtime

tflite-runtime has no wheels for Python 3.12+. Google replaced it with
ai-edge-litert (same API). detector.py now tries ai-edge-litert first,
falls back to tflite-runtime for older Python versions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alex
2026-02-08 17:24:20 -06:00
parent 5466793e69
commit 02cb31abf8
3 changed files with 15 additions and 7 deletions

View File

@@ -92,7 +92,9 @@ pip install -r requirements.txt
# Install TFLite runtime for object detection
echo_info "Installing TFLite runtime for object detection..."
pip install tflite-runtime 2>/dev/null || echo_warn "tflite-runtime not available for this platform (object detection will be disabled)"
pip install ai-edge-litert 2>/dev/null || \
pip install tflite-runtime 2>/dev/null || \
echo_warn "No TFLite runtime available for this platform (object detection will be disabled)"
# Generate SSL certificates if not present
if [ ! -f ssl/cert.pem ]; then