HRNetV2-W48 (ONNX) β Renesas X5H
Introduction
This repository hosts HRNetV2-W48, targeting the Renesas R-Car X5H platform for image-segmentation inference on the NPX6 NPU.
- Model Architecture: HRNetV2 (High-Resolution Network v2, W48 width) with an FCN decode head β extends HRNet by concatenating the upsampled multi-resolution feature maps for dense-prediction tasks such as semantic segmentation
- Source Model: open-mmlab/mmsegmentation
- Task: image-segmentation (dataset: ade20k)
- Note: The upstream mmsegmentation config targets 512x512 crops; the benchmark export used here runs at 512x1024 input resolution.
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.
hrnet_v2_seg_sim.onnx (FP32)
β
βββΆ MWMX Runtime βββΆ INT8 auto-cast βββΆ NPX6 NPU
Provided Artifacts
| Artifact | Status | Notes |
|---|---|---|
| FP32 (ONNX) | β³ Pending | fp32/hrnet_v2_seg_sim.onnx β to be added; will be auto-cast to INT8 by the MWMX toolchain at compile time (see Deployment Flow above); no separate INT8 file will be shipped |
Performance
Measured on Renesas R-Car X5H via the MWMX runtime (APM80 ship-performance CI pipeline).
Benchmark configuration: Single NPU Β· Batch size: 1 Β· Input: 3 Γ 512 Γ 1024
| AI Cores | Runtime | Precision | Device | Latency (ms) | Type |
|---|---|---|---|---|---|
| 1 | MWMX Runtime | INT8 (auto) | X5H Β· 1Γ NPU Β· 1 Core Β· 850 MHz | 317.72 | Measured |
| 3 | MWMX Runtime | INT8 (auto) | X5H Β· 1Γ NPU Β· 3 Core Β· 850 MHz | 105.71 | Measured |
| 4 | MWMX Runtime | INT8 (auto) | X5H Β· 1Γ NPU Β· 4 Core Β· 850 MHz | 119.27 | Measured |
| 6 | MWMX Runtime | INT8 (auto) | X5H Β· 1Γ NPU Β· 6 Core Β· 850 MHz | 93.55 | Measured |
| 12 | MWMX Runtime | INT8 (auto) | X5H Β· 1Γ NPU Β· 12 Core Β· 850 MHz | 106.34 | Measured |
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 | 315.971 | 3.2 | 312.99 | 99.1 % | 0.9 % | 317.72 |
| Full model | 12 | 111.373 | 9 | 106.099 | 95.3 % | 4.7 % | 106.34 |
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 | 784 | 783 | 1 (1) | 99.9 % | 0.1 % |
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/HRNetV2-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, "APM80" ship-performance target) - Precision: FP32 ONNX input; INT8 execution (auto-cast by MWMX)