Update model card for yolo11-det
Browse files8 unmodified lines9101112131415161718192021225 unmodified lines2829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572581 unmodified line2602612622632642652668 unmodified lines- onnx- int8- yolo- gstreamer- edgefirst- nxp- hailo- jetson- real-time- embedded- multiplatformmodel-index:- name: yolo11-detresults:5 unmodified linesmetrics:- name: "mAP@0.5 (Nano ONNX FP32)"type: map_50value: 53.4- name: "mAP@0.5-0.95 (Nano ONNX FP32)"type: mapvalue: 37.9- name: "mAP@0.5 (Nano TFLite INT8)"type: map_50value: 50.1- name: "mAP@0.5-0.95 (Nano TFLite INT8)"type: mapvalue: 34.5---# YOLO11 Detection β EdgeFirst Edge AI**NXP i.MX 8M Plus** | **NXP i.MX 93** | **NXP i.MX 95** | **NXP Ara240** | **RPi5 + Hailo-8/8L** | **NVIDIA Jetson**YOLO11 Detection models optimized for edge AI deployment across multiple hardware platforms. All sizes from Nano to XLarge, in ONNX FP32 and TFLite INT8 formats, with platform-specific compiled models for NPU acceleration.Trained on [COCO 2017](https://test.edgefirst.studio/public/projects/2839/home) (80 classes). Part of the [EdgeFirst Model Zoo](https://huggingface.co/spaces/EdgeFirst/Models).> [!TIP]> **Training session**: [View on EdgeFirst Studio](https://test.edgefirst.studio/public/projects/2839/experiment/training/list?exp_id=4656) β dataset, training config, metrics, and exported artifacts.> [!NOTE]> Newer architecture with attention blocks.---## Size ComparisonAll models validated on COCO val2017 (5000 images, 80 classes).| Size | Params | GFLOPs | ONNX FP32 mAP@0.5 | ONNX FP32 mAP@0.5-0.95 | TFLite INT8 mAP@0.5 | TFLite INT8 mAP@0.5-0.95 ||------|--------|--------|--------------------|-------------------------|----------------------|--------------------------|| Nano | 2.6M | 6.5 | 53.4% | 37.9% | 50.1% | 34.5% || Small | 9.4M | 21.5 | β | β | β | β || Medium | 20.1M | 68.0 | β | β | β | β || Large | 25.3M | 87.6 | β | β | β | β || XLarge | 56.9M | 195.0 | β | β | β | β |---## On-Target PerformanceFull pipeline timing: pre-processing + inference + post-processing.| Size | Platform | Pre-proc (ms) | Inference (ms) | Post-proc (ms) | Total (ms) | FPS ||------|----------|---------------|----------------|-----------------|------------|-----|| β | β | β | β | β | β | β |*Measured with [EdgeFirst Perception](https://github.com/EdgeFirstAI) stack. Timing includes full GStreamer pipeline overhead.*---## Downloads<details open><summary><strong>ONNX FP32</strong> β Any platform with ONNX Runtime.</summary>| Size | File | Status ||------|------|--------|| Nano | `yolo11n-det-coco.onnx` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/onnx/yolo11n-det-coco.onnx) || Small | `yolo11s-det-coco.onnx` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/onnx/yolo11s-det-coco.onnx) || Medium | `yolo11m-det-coco.onnx` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/onnx/yolo11m-det-coco.onnx) || Large | `yolo11l-det-coco.onnx` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/onnx/yolo11l-det-coco.onnx) || XLarge | `yolo11x-det-coco.onnx` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/onnx/yolo11x-det-coco.onnx) |</details><details><summary><strong>TFLite INT8</strong> β CPU or NPU via runtime delegate (i.MX 8M Plus VX Delegate).</summary>| Size | File | Status ||------|------|--------|| Nano | `yolo11n-det-coco.tflite` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/tflite/yolo11n-det-coco.tflite) || Small | `yolo11s-det-coco.tflite` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/tflite/yolo11s-det-coco.tflite) || Medium | `yolo11m-det-coco.tflite` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/tflite/yolo11m-det-coco.tflite) || Large | `yolo11l-det-coco.tflite` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/tflite/yolo11l-det-coco.tflite) || XLarge | `yolo11x-det-coco.tflite` | [Download](https://huggingface.co/EdgeFirst/yolo11-det/resolve/main/tflite/yolo11x-det-coco.tflite) |</details>---## Deploy with EdgeFirst PerceptionCopy-paste [GStreamer](https://github.com/EdgeFirstAI/gstreamer) pipeline examples for each platform.### NXP i.MX 8M Plus β Camera to Detection with Vivante NPU```bashgst-launch-1.0 \v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! \edgefirstcameraadaptor ! \tensor_filter framework=tensorflow-lite \model=yolo11n-det-coco.tflite \custom=Delegate:External,ExtDelegateLib:libvx_delegate.so ! \edgefirstdetdecoder ! edgefirstoverlay ! waylandsink```### RPi5 + Hailo-8L```bashgst-launch-1.0 \v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! \hailonet hef-path=yolo11n-det-coco.hailo8l.hef ! \hailofilter function-name=yolo11_nms ! \hailooverlay ! videoconvert ! autovideosink```### NVIDIA Jetson (TensorRT)```bashgst-launch-1.0 \v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! \edgefirstcameraadaptor ! \nvinfer config-file-path=yolo11n-det-coco-config.txt ! \edgefirstdetdecoder ! edgefirstoverlay ! nveglglessink```*Full pipeline documentation: [EdgeFirst GStreamer Plugins](https://github.com/EdgeFirstAI/gstreamer)*---## Foundation (HAL) Python Integration```pythonfrom edgefirst.hal import Model, TensorImage# Load model β metadata (labels, decoder config) is embedded in the filemodel = Model("yolo11n-det-coco.tflite")# Run inference on an imageimage = TensorImage.from_file("image.jpg")results = model.predict(image)# Access detectionsfor det in results.detections:print(f"{det.label}: {det.confidence:.2f} at {det.bbox}")```*[EdgeFirst HAL](https://github.com/EdgeFirstAI/hal) β Hardware abstraction layer with accelerated inference delegates.*---## CameraAdaptorEdgeFirst [CameraAdaptor](https://github.com/EdgeFirstAI/cameraadaptor) enables training and inference directly on native sensor formats (GREY, YUYV, etc.) β skipping the ISP color conversion pipeline entirely. This reduces latency and power consumption on edge devices.CameraAdaptor variants are included alongside baseline RGB models:| Variant | Input Format | Use Case ||---------|-------------|----------|| `yolo11n-det-coco.onnx` | RGB (3ch) | Standard camera input || `yolo11n-det-coco-grey.onnx` | GREY (1ch) | Monochrome / IR sensors || `yolo11n-det-coco-yuyv.onnx` | YUYV (2ch) | Raw sensor bypass |*Train CameraAdaptor models with [EdgeFirst Studio](https://edgefirst.studio) β the CameraAdaptor layer is automatically inserted during training.*---## Train Your Own with EdgeFirst StudioTrain on your own dataset with [**EdgeFirst Studio**](https://edgefirst.studio):- **Free tier** includes YOLO training with automatic INT8 quantization and edge deployment- Upload datasets via [EdgeFirst Recorder](https://github.com/EdgeFirstAI/recorder) or COCO/YOLO format- AI-assisted annotation with auto-labeling- CameraAdaptor integration for native sensor format training- Deploy trained models to edge devices via [EdgeFirst Client](https://github.com/EdgeFirstAI/client)---## See AlsoOther models in the [EdgeFirst Model Zoo](https://huggingface.co/spaces/EdgeFirst/Models):| Model | Task | Best Nano Metric | Link ||-------|------|-------------------|------|| YOLOv5 Detection | Detection | 49.6% mAP@0.5 (ONNX) | [EdgeFirst/yolov5-det](https://huggingface.co/EdgeFirst/yolov5-det) || YOLOv8 Detection | Detection | 50.2% mAP@0.5 (ONNX) | [EdgeFirst/yolov8-det](https://huggingface.co/EdgeFirst/yolov8-det) || YOLOv8 Segmentation | Segmentation | 34.1% Mask mAP@0.5-0.95 (ONNX) | [EdgeFirst/yolov8-seg](https://huggingface.co/EdgeFirst/yolov8-seg) || YOLO11 Segmentation | Segmentation | 35.5% Mask mAP@0.5-0.95 (ONNX) | [EdgeFirst/yolo11-seg](https://huggingface.co/EdgeFirst/yolo11-seg) || YOLO26 Detection | Detection | 54.9% mAP@0.5 (ONNX) | [EdgeFirst/yolo26-det](https://huggingface.co/EdgeFirst/yolo26-det) || YOLO26 Segmentation | Segmentation | 37.0% Mask mAP@0.5-0.95 (ONNX) | [EdgeFirst/yolo26-seg](https://huggingface.co/EdgeFirst/yolo26-seg) |---## Technical Details### Quantization PipelineAll TFLite INT8 models are produced by EdgeFirst's custom quantization pipeline ([details](https://github.com/EdgeFirstAI/studio-ultralytics)):1. **ONNX Export** β Standard Ultralytics export with `simplify=True`2. **TF-Wrapped ONNX** β Box coordinates normalized to [0,1] inside DFL decode via `tf_wrapper` (~1.2% better mAP than post-hoc normalization)3. **Split Decoder** β Boxes, scores, and mask coefficients split into separate output tensors for independent INT8 quantization scales4. **Smart Calibration** β 500 images selected via greedy coverage maximization from COCO val20175. **Full INT8** β `uint8` input (raw pixels), `int8` output (per-tensor scales), MLIR quantizer### Split Decoder Output Format**Detection** (e.g., yolo11n):- Boxes: `(1, 4, 8400)` β normalized [0,1] coordinates- Scores: `(1, 80, 8400)` β class probabilitiesEach tensor has independent quantization scale and zero-point. EdgeFirst HAL handles dequantization and reassembly automatically.### Metadata- **TFLite**: `edgefirst.json`, `labels.txt`, and `edgefirst.yaml` embedded via ZIP (no `tflite-support` dependency)- **ONNX**: `edgefirst.json` embedded via `model.metadata_props`No standalone metadata files β models are self-contained.---## Limitations- **COCO bias** β Models trained on COCO (80 classes) inherit its biases: Western-centric scenes, specific object distributions, limited weather/lighting diversity- **INT8 accuracy loss** β Full-integer quantization typically degrades mAP by 6-12% relative to FP32; actual loss depends on model architecture and dataset- **Thermal variation** β On-target performance varies with device temperature; sustained inference may throttle on passively-cooled devices- **Input resolution** β All models expect 640Γ640 input; other resolutions require letterboxing or may reduce accuracy- **CameraAdaptor variants** β GREY/YUYV models trade color information for latency; accuracy may differ from RGB baseline depending on the task---1 unmodified line```bibtex@software{edgefirst_yolo11_det,title = { {YOLO11 Detection β EdgeFirst Edge AI} },author = {Au-Zone Technologies},url = {https://huggingface.co/EdgeFirst/yolo11-det},year = {2026},8 unmodified lines9101112131415161718195 unmodified lines2526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102111 unmodified line2132142152162172182198 unmodified lines- onnx- int8- yolo- edgefirst- nxp- hailo- jetson- embeddedmodel-index:- name: yolo11-detresults:5 unmodified linesmetrics:- name: "mAP@0.5 (Nano ONNX FP32)"type: map_50value: 53.05- name: "mAP@0.5-0.95 (Nano ONNX FP32)"type: mapvalue: 37.83- name: "mAP@0.5 (Small ONNX FP32)"type: map_50value: 61.21- name: "mAP@0.5-0.95 (Small ONNX FP32)"type: mapvalue: 44.91- name: "mAP@0.5 (Medium ONNX FP32)"type: map_50value: 65.91- name: "mAP@0.5-0.95 (Medium ONNX FP32)"type: mapvalue: 49.59---# YOLO11 Detection β EdgeFirst Model ZooYOLO11 Detection models trained on [COCO 2017](https://test.edgefirst.studio/public/projects/2839/home) (80 classes) and validated on real edge hardware through the EdgeFirst Profiler + Validator pipeline. Each row in the tables below cites the EdgeFirst Studio validation session (`v-XXXX`) that produced the measurement.Part of the [EdgeFirst Model Zoo](https://huggingface.co/spaces/EdgeFirst/Models).> [!TIP]> **Training experiment**: [View on EdgeFirst Studio](https://test.edgefirst.studio/public/projects/2839/experiment/training/list?exp_id=4656) β dataset, training configuration, metrics, and exported artifacts.> [!NOTE]> Architecture with C3k2 attention blocks.---## Reference accuracy β ONNX FP32Accuracy ceiling for each size, measured against COCO `val2017` (5,000 images) with `pycocotools`. Quantized and compiled artifacts (TFLite INT8, HEF, etc.) are graded against this reference per the EdgeFirst publication rule.| Size | Params | GFLOPs | mAP@0.5 | mAP@0.5-0.95 | mAP@0.75 | Source ||------|--------|--------|---------|--------------|----------|--------|| Nano | 2.6M | 6.5 | 53.05% | 37.83% | 41.07% | [v-1d35](https://test.edgefirst.studio/public/validation/v-1d35/details?mode=metrics) || Small | 9.4M | 21.5 | 61.21% | 44.91% | 48.44% | [v-1d36](https://test.edgefirst.studio/public/validation/v-1d36/details?mode=metrics) || Medium | 20.1M | 68.0 | 65.91% | 49.59% | 53.80% | [v-1d37](https://test.edgefirst.studio/public/validation/v-1d37/details?mode=metrics) || Large | 25.3M | 87.6 | β | β | β | β || XLarge | 56.9M | 195.0 | β | β | β | β |---## On-target validation resultsEach row is one EdgeFirst Studio validation session. Click the **Source** link to inspect the full session β model artifact, dataset version, parameters, per-stage Perfetto trace, and the host hardware description (hostname, kernel version, SoC, NPU, profiler version).Cells rendered as `β` are sessions that did not meet the EdgeFirst publication threshold; the underlying session is still linked in the Source column for inspection.| Size | Platform | mAP@0.5 | Ξ vs FP32 (pp) | mAP@0.5-0.95 | Inference (ms) | FPS (median) | Source ||------|----------|---------|----------------|--------------|----------------|--------------|--------|| Nano | NXP i.MX 8M Plus + VeriSilicon NPU | 49.91% | -3.14 | 35.22% | 88.33 | 9.2 | [v-1d4b](https://test.edgefirst.studio/public/validation/v-1d4b/details?mode=metrics) || Nano | NXP i.MX 95 + eIQ Neutron NPU | β | β | β | β | β | [v-1d51](https://test.edgefirst.studio/public/validation/v-1d51/details?mode=metrics) || Nano | Raspberry Pi 5 + Hailo-8L NPU | 51.28% | -1.77 | 36.37% | 18.92 | 51.1 | [v-1d3a](https://test.edgefirst.studio/public/validation/v-1d3a/details?mode=metrics) || Small | NXP i.MX 95 + eIQ Neutron NPU | β | β | β | β | β | [v-1d55](https://test.edgefirst.studio/public/validation/v-1d55/details?mode=metrics) || Small | Raspberry Pi 5 + Hailo-8L NPU | 59.92% | -1.29 | 43.71% | 38.93 | 25.2 | [v-1d3d](https://test.edgefirst.studio/public/validation/v-1d3d/details?mode=metrics) || Medium | Raspberry Pi 5 + Hailo-8L NPU | 64.56% | -1.35 | 48.30% | 72.74 | 13.6 | [v-1d40](https://test.edgefirst.studio/public/validation/v-1d40/details?mode=metrics) |---## Validation pipelineThese results are produced by the EdgeFirst on-target validation pipeline:1. **EdgeFirst Profiler** runs on the target hardware, executes the full inference pipeline (preprocess β inference β postprocess), and emits per-image predictions in EdgeFirst Arrow/Parquet plus a Perfetto trace.2. **EdgeFirst Validator** consumes the predictions and trace, computes `pycocotools` accuracy metrics and per-stage timing summaries, and publishes the results to the Studio validation session.3. **EdgeFirst HAL** ([open source](https://github.com/EdgeFirstAI/hal)) provides the hardware-accelerated preprocessing and post-decoding primitives used at both validation and deployment time, so the timings measured here reflect the same accelerated paths a production runtime would take.Inference latency is reported as the on-accelerator inference time. FPS is the measured end-to-end pipelined throughput from the Perfetto trace, which generally exceeds `1000 / (preprocess + inference + postprocess)` because the runtime overlaps stages across frames.See [EdgeFirst Studio](https://edgefirst.studio) for the full validation pipeline.---## DownloadsArtifacts are organized by deployment target. Each model file embeds the EdgeFirst `edgefirst.json` metadata (training session, dataset version, calibration artifact, converter chain) so a single file is sufficient for deployment β no sidecar configuration required.*Per-artifact download links are populated from the Studio artifact registry. To see the live download table, regenerate this card with `--studio` against an authenticated Studio session.*---## Inference example (Python)```pythonfrom edgefirst.hal import Model, TensorImage# Load the model β embedded edgefirst.json carries labels and decoder configmodel = Model("yolo11n-det-int8.tflite")# Run inference on an imageimage = TensorImage.from_file("image.jpg")results = model.predict(image)# Iterate detectionsfor det in results.detections:print(f"{det.label}: {det.confidence:.2f} at {det.bbox}")```[EdgeFirst HAL](https://github.com/EdgeFirstAI/hal) β Hardware abstraction layer with accelerated inference delegates.---## TraceabilityEvery measurement in the tables above is reachable through the EdgeFirst Studio validation framework. The `v-XXXX` Source link on each row resolves to a public Studio URL of the form:```https://test.edgefirst.studio/public/validation/v-XXXX/details?mode=metrics```From there, the full provenance chain is one click deeper: training session ID, dataset version, calibration artifact, converter chain (e.g. TFLite quantizer + Neutron compile), validation parameters, and the host hardware description (hostname, kernel version, SoC, NPU, profiler version). The same model file you download from this repository embeds the same chain in its `edgefirst.json` metadata.---## See alsoOther model families in the [EdgeFirst Model Zoo](https://huggingface.co/spaces/EdgeFirst/Models):| Model | Task | Link ||-------|------|------|| YOLOv5 Detection | Detection | [EdgeFirst/yolov5-det](https://huggingface.co/EdgeFirst/yolov5-det) || YOLOv8 Detection | Detection | [EdgeFirst/yolov8-det](https://huggingface.co/EdgeFirst/yolov8-det) || YOLOv8 Segmentation | Segmentation | [EdgeFirst/yolov8-seg](https://huggingface.co/EdgeFirst/yolov8-seg) || YOLO11 Segmentation | Segmentation | [EdgeFirst/yolo11-seg](https://huggingface.co/EdgeFirst/yolo11-seg) || YOLO26 Detection | Detection | [EdgeFirst/yolo26-det](https://huggingface.co/EdgeFirst/yolo26-det) || YOLO26 Segmentation | Segmentation | [EdgeFirst/yolo26-seg](https://huggingface.co/EdgeFirst/yolo26-seg) |---## Train your own with EdgeFirst StudioTrain on your own dataset with [**EdgeFirst Studio**](https://edgefirst.studio):- Free tier includes YOLO training with automatic INT8 quantization and edge deployment.- Upload datasets via [EdgeFirst Recorder](https://github.com/EdgeFirstAI/recorder) or COCO/YOLO format.- AI-assisted annotation with auto-labeling.- CameraAdaptor integration for native sensor format training.- Deploy trained models to edge devices via [EdgeFirst Client](https://github.com/EdgeFirstAI/client).---## Technical notes### Quantization pipelineAll TFLite INT8 models are produced by EdgeFirst's quantization pipeline ([details](https://github.com/EdgeFirstAI/studio-ultralytics)):1. **ONNX export** β standard Ultralytics export with `simplify=True`2. **TF-wrapped ONNX** β box coordinates normalized to `[0, 1]` inside DFL decode3. **Split decoder** β boxes, scores, and mask coefficients split into separate output tensors so each receives an independent INT8 quantization scale4. **Smart calibration** β calibration samples selected via greedy coverage maximization; the artifact is content-addressed by parameter hash and cached in Studio for deterministic reuse5. **Full integer INT8** β `uint8` input, `int8` output, MLIR quantizer### Split decoder output format**Detection** (e.g. yolo11n):- `boxes` β `(1, 4, 8400)` normalized `[0, 1]` coordinates- `scores` β `(1, 80, 8400)` per-class probabilitiesEach tensor has its own quantization scale and zero point. The EdgeFirst HAL handles dequantization and reassembly automatically; no application code change is required across NPU targets.### Embedded metadata- **TFLite**: `edgefirst.json` and `labels.txt` embedded in the ZIP-format model file- **ONNX**: `edgefirst.json` embedded in `model.metadata_props`No sidecar files required; the model artifact is self-contained.---## Limitations- **COCO bias** β models trained on COCO (80 classes) inherit the dataset's biases (Western-centric scenes, particular object distributions, limited weather/lighting diversity).- **INT8 quantization loss** β full-integer quantization introduces accuracy loss relative to FP32; the magnitude per platform is shown in the *Ξ vs FP32* column above.- **Input resolution** β all models expect 640Γ640 input; other resolutions require letterboxing.---1 unmodified line```bibtex@software{edgefirst_yolo11_det,title = { {YOLO11 Detection β EdgeFirst Model Zoo} },author = {Au-Zone Technologies},url = {https://huggingface.co/EdgeFirst/yolo11-det},year = {2026},
README.md+97-144