feat: migrate Coral TPU skill from pycoral to ai-edge-litert (LiteRT)#180
Open
feat: migrate Coral TPU skill from pycoral to ai-edge-litert (LiteRT)#180
Conversation
Breaking change: Docker is no longer the default deployment — native venv is.
detect.py:
- Replace pycoral + tflite-runtime with ai-edge-litert
- Use litert.Interpreter + load_delegate('libedgetpu') for Edge TPU
- Platform-aware delegate lib name (Linux/macOS/Windows)
- Unified output tensor parsing (removed separate pycoral path)
- Add 'runtime' field to ready event
requirements.txt:
- pycoral~=2.0 + tflite-runtime~=2.14 → ai-edge-litert>=2.1.0
- Python 3.9-3.13 supported (was 3.6-3.9)
deploy.sh:
- Docker build → native Python venv
- Auto-installs libedgetpu via apt on Debian/Ubuntu
- Install instructions for macOS and Windows
- Native run_command (no docker run)
deploy.bat:
- Docker → native Python venv for Windows
tpu_probe.py:
- list_edge_tpus() → load_delegate() availability test
SKILL.md:
- Version 1.0.0 → 2.0.0
- Removed runtime: docker
- Updated Platform Setup with libedgetpu install commands
- Docker noted as optional alternative
Dockerfile:
- Marked as optional, bullseye-slim → bookworm-slim
- pycoral → ai-edge-litert
…tion skills - Remove Docker references from Coral TPU and OpenVINO table entries - Update mermaid diagram to show all 3 detection skills as native - Show Coral TPU using ai-edge-litert + libedgetpu delegate - Show OpenVINO using OpenVINO SDK with NCS2/iGPU/CPU targets - Replace 'docker build' with 'system packages' in LLM install step
…till uses Docker)
The skill crashed with 'No Edge TPU model found' because deploy.sh never downloaded a .tflite model. Now downloads SSD MobileNet V2 (Edge TPU compiled) from google-coral/test_data during deployment, plus a CPU-only fallback variant.
Ships the model in-repo so the skill works immediately after deployment without requiring an internet download step. Force-added past .gitignore *.tflite rule.
The _edgetpu.tflite model uses custom Edge TPU ops that can't run on CPU. When no Coral USB is connected, the fallback needs the standard quantized model without edgetpu-custom-op.
…B passthrough This reverts the deployment logic to the Docker-first approach originally introduced in commit 9137400 to bypass sudo and libedgetpu installation hurdles on macOS. The compiled tflite models added in recent commits remain.
Aligns the yolo-detection-2026-coral-tpu skill architectural flow with CameraClaw by using a host-side `monitor.js` script rather than emitting a hardcoded `run_command` from `deploy.sh`. This fixes Docker invocation inconsistencies natively inside Aegis. Also handles cross-platform volume mapping via `os.tmpdir()` which fixes Windows mapping issues.
… path in monitor wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking change: Docker is no longer the default deployment — native venv is.
detect.py:
requirements.txt:
deploy.sh:
deploy.bat:
tpu_probe.py:
SKILL.md:
Dockerfile: