An RKNN conversion can complete while the quantized model loses accuracy on the one defect the customer cares about. On Sige5, treat calibration images as a sample of the inputs the deployed model actually receives. Their distribution is affected by the optics, lighting and preprocessing.

ArmSoM Sige5 single-board computer · ArmSoM
Build calibration and evaluation sets separately
Include representative normal operation across shifts and conditions. Keep a separate labeled holdout with difficult defects and realistic negatives. Send both sets through the same resize, normalization and channel conversion as the production camera. A calibration directory full of marketing photographs teaches the quantizer little about a dim inspection enclosure.
Keep adjacent frames from one short recording in the same data split. Nearly identical frames on both sides can make an evaluation look stronger than its ability to generalize to a new shift.
Compare floating-point and quantized outputs on the holdout at the same operating threshold. Record which cases changed. If only reflective parts regress, improve representation of that condition and retest against an untouched evaluation set.
Which images belong in the holdout?
Suppose an inspection station sees the same component under matte and reflective covers. Split the data by physical part or capture session before creating the calibration and evaluation directories. Include reflective covers that are actually acceptable, plus labeled defects from that same condition. Otherwise a change that merely rejects all shiny surfaces can look like better defect detection.
Track misses and false rejects separately for each cover type. An increase in overall accuracy can conceal a regression on the smaller group. Preserve the exact input transform and conversion configuration with the result so another engineer can rerun the comparison.
Reference material
ArmSoM Sige5 hardware documentation
Rockchip RKNN-Toolkit2 and model conversion resources
