Commit 76ede38
committed
feat: ONNX Runtime + CoreML EP for YOLO detection on Apple Silicon
- Ship yolo26n.onnx (9.4MB) from onnx-community for zero-config default
- On-demand download for s/m/l from onnx-community HuggingFace repos
- _OnnxCoreMLModel wrapper: logits+pred_boxes → sigmoid+cxcywh→xyxy
- Bypasses macOS 26.x MPSGraph MLIR crash (SIGABRT)
- 15-25ms/frame (~67 FPS) on Apple M5 Pro with CoreML EP
- Strip requirements_mps.txt: no torch/ultralytics (~120MB → ~17MB)
- Class names from yolo26n_names.json (no .pt dependency)1 parent a68cd16 commit 76ede38
File tree
5 files changed
+663
-53
lines changed- skills
- detection/yolo-detection-2026
- scripts
- lib
5 files changed
+663
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
0 commit comments