YOLOv7-Tiny (ONNX) – Renesas X5H
Introduction
This repository hosts YOLOv7-Tiny, targeting the Renesas R-Car X5H platform for object detection inference on the NPX6 NPU.
- Model Architecture: YOLOv7-Tiny, SyncBN, "fast" training recipe
- Source Model: OpenMMLab config
yolov7_tiny_syncbn_fast_8x16b_300e_coco_nopost(no HuggingFace mirror of these weights; seemodel.sourcein.metadata.yaml) - Task: Object Detection
- Dataset: COCO (inferred from checkpoint name)
- Input Resolution: TBD
- Parameters: 6.2M
Naming note: the
_nopostsuffix in the checkpoint name indicates the exported ONNX graph excludes postprocessing (NMS/decode); this must be performed externally.
Deployment Flow
The FP32 ONNX model is auto-cast to INT8 by the Renesas MWMX toolchain at compile time — no separate quantization step is required.
yolov7_tiny_..._optimized.onnx (FP32)
│
└─▶ MWMX Runtime ──▶ INT8 auto-cast ──▶ NPX6 NPU
Provided Artifacts
| Artifact | Status | Notes |
|---|---|---|
| FP32 (ONNX) | ✅ | fp32/yolov7_tiny_syncbn_fast_8x16b_300e_coco_nopost_optimized.onnx — FP32 ONNX export |
Performance
Measured on Renesas R-Car X5H via the MWMX runtime (APM50 ship-performance CI pipeline).
Benchmark configuration: Single NPU · Batch size: 1 · Input resolution: TBD
| Runtime | Precision | Device | Latency (ms) | Type |
|---|---|---|---|---|
| MWMX Runtime | INT8 (auto) | X5H · 1× NPU · 1 Core · 850 MHz | 5.357872 | Measured |
| MWMX Runtime | INT8 (auto) | X5H · 1× NPU · 12 Cores · 850 MHz | 3.484644 | Measured |
Model Input
Input Tensor
- Shape: TBD — not available from source data (expected
(N, 3, H, W), RGB) - Format: TBD
- Data Type: TBD
- Pixel Range: TBD
Preprocessing
TBD — not available from source data.
Model Outputs
TBD — not available from source data. The _nopost checkpoint suffix indicates postprocessing
(anchor-box decoding and NMS) is excluded from the exported ONNX graph and must be implemented
externally to obtain final detections.
Postprocessing
- Anchor-box decoding at each output scale (external, not part of the exported graph)
- Confidence threshold filtering
- Non-Maximum Suppression (NMS)
Accuracy
TBD — not yet measured/published for this repo.
ONNX Runtime – Renesas EP v2.1.0 (MWMX 2.2 ENG4)
Measured on R-Car X5H with ONNX Runtime + Renesas Execution Provider (INT8 auto-cast); nodes the NPU cannot run fall back to the CPU EP. Batch size 1, 1 NPU. Source: ORT Renesas EP test report, status 2026-09-30. This section supersedes earlier ORT figures in this card.
| Component | AI Cores | Latency (ms) | Throughput (fps) | NPU Inference (ms) | NPU % | CPU + Overhead % | Portable pkg NPU-only (ms) |
|---|---|---|---|---|---|---|---|
| Full model | 1 | 45.38 | 22 | 27.857 | 61.4 % | 38.6 % | — |
| Full model | 12 | 32.128 | 31.1 | — | — | — | — |
12-core latency is not always lower than 1-core: small models are dominated by CPU-side overhead.
Graph partitioning (NPU vs CPU nodes)
| Component | Total Nodes | NPU Nodes | CPU Nodes (Q/DQ inserted) | NPU % | CPU % |
|---|---|---|---|---|---|
| Full model | 234 | 195 | 39 (7) | 83.3 % | 16.7 % |
Accuracy (ORT)
| Runtime / Precision | Result |
|---|---|
| CPU EP · FP32 reference | mAP 0.371 |
| Renesas EP + CPU EP · INT8 · v2.1.0 | mAP 0.367 |
Compile notes (from the test workbook)
- Nodes dispatched to CPU for compilation/latency: 3
- Nodes dispatched to CPU for better accuracy: 12
Runtime Details
MWMX Runtime
- Engine: Renesas MWMX (Middleware MX) native inference runtime
- Input format: FP32 ONNX (compiled by the MWMX toolchain)
- NPU execution precision: INT8 (auto-cast by MWMX toolchain)
- Execution target: NPX6-48K NPU on R-Car X5H
Prerequisites
To run inference on Renesas R-Car X5H, you need:
- Renesas R-Car X5H board with NPX6 NPU
- Renesas MWMX Runtime
- Hugging Face CLI to download the model
Download
hf download Renesas/YOLOv7-Tiny-ONNX --repo-type=model --include "fp32/*"
Benchmark Methodology
- HIL runs: Hardware-in-the-loop — measured on physical R-Car X5H silicon via the MWMX
runtime (
metawaremx_runtimeCI pipeline, "APM50" ship-performance target) - Precision: FP32 ONNX input; INT8 execution (auto-cast by MWMX)
- Slices: results reported for both 1 AI core and 12 AI cores per NPU instance