跳到正文
FunCoding

yolo-detection-2026-coral-tpu-win-wsl

Google Coral Edge TPU — real-time object detection natively via Windows WSL

Star
3,152
分类
安全
许可证
MIT
最近提交
2026年9月17日

skills/detection/yolo-detection-2026-coral-tpu-win-wsl/SKILL.md

在 GitHub 上查看

Coral TPU Object Detection (Windows WSL)

Real-time object detection natively utilizing the Google Coral Edge TPU accelerator on your local hardware via Windows Subsystem for Linux (WSL). Detects 80 COCO classes (person, car, dog, cat, etc.) with ~4ms inference on 320x320 input.

Requirements

  • Google Coral USB Accelerator (USB 3.0 port recommended)
  • WSL2 installed and running on Windows
  • usbipd-win installed on the Windows host

How It Works

┌─────────────────────────────────────────────────────┐
│ Host (Aegis-AI on Windows)                          │
│   frame.jpg → /tmp/aegis_detection/                 │
│   stdin  ──→ ┌──────────────────────────────┐       │
│              │ WSL Container / Environment   │       │
│              │   detect.py                   │       │
│              │   ├─ loads _edgetpu.tflite     │       │
│              │   ├─ reads frame from disk     │       │
│              │   └─ runs inference on TPU    │       │
│   stdout ←── │   → JSONL detections          │       │
│              └──────────────────────────────┘       │
│   USB ──→ usbipd-win bridge to WSL                  │
└─────────────────────────────────────────────────────┘
  1. Aegis writes camera frame JPEG to shared /tmp/aegis_detection/ workspace
  2. Sends frame event via stdin JSONL to the WSL Python instance
  3. detect.py invokes PyCoral and executes natively on the mapped USB Edge TPU inside Linux
  4. Returns detections event via stdout JSONL back to Windows Host

Performance

Input SizeInferenceOn-chipNotes
320x320~4ms100%Fully on TPU, best for real-time
640x640~20msPartialSome layers on CPU (model segmented)

Cooling: The USB Accelerator aluminum case acts as a heatsink. If too hot to touch during continuous inference, it will thermal-throttle. Consider active cooling or clock_speed: standard.

Installation

Windows (WSL)

Run deploy.bat — this will:

  1. Verify usbipd is installed and bind the 18d1:9302 and 1a6e:089a Edge TPU hardware IDs.
  2. Setup a Python virtual environment exclusively within WSL.
  3. Install the Edge TPU libraries and dependencies within the WSL boundary.
  4. Auto-attach the device using usbipd seamlessly during invocation.

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail203k近 7 天新增 4,904 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 598 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,667 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,667 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 739 个 star