ArmSoM
← All stories

Comparing Two RKNN Models When Their Output Shapes Differ

A replacement detector can return different tensor shapes while solving the same inspection problem. Comparing raw arrays element by element will tell you little. On an ArmSoM board, compare a defined application result after each model’s documented decoding step.

ArmSoM Sige7 single-board computer product photo

ArmSoM Sige7 single-board computer · ArmSoM

Choose a shared output contract

For object detection, express both results as source-image boxes, class names and confidence values. Resolve coordinate units and class mapping first. Use identical saved frames and match detections with a declared overlap rule. Keep unmatched predictions so a rise in false positives is visible alongside any improvement in recall.

A practical comparison sheet keeps three lists per class: matched detections, detections unique to the old model and detections unique to the new one. Review a sample from each list.

Report accuracy, processing latency and memory for each complete pipeline. A model with fewer milliseconds inside inference may demand more CPU decoding afterward. Retain a paired example where the models disagree and inspect the application consequence before adopting the replacement.

Reference material

ArmSoM Sige7 hardware documentation

Rockchip RKNN-Toolkit2 and model conversion resources

Related ArmSoM guide

How to benchmark an SBC NPU without misleading tops comparisons

Explore ArmSoM Sige7