Rockchip · AI & Linux Hub

AI inference

RKNN detects objects by day but misses them at night: rebuilding the calibration set

First let the floating point model and the quantization model process the same batch of night images.

If both are missed, training data, exposure, or optical conditions are more worthy of priority. If the error occurs mainly after quantization, then proceed to the calibration set. This avoids masking problems by repeatedly adjusting the threshold.

Draw samples according to on-site distribution

Group daytime, backlight, under lamp, infrared fill light and motion blur, and record the source and preprocessing of each group. One hundred adjacent frames in a continuous video may be almost the same, and samples of different times, distances, and backgrounds should be added. Calibration and final evaluation remain independent sets.

Record losses group by group

Fixed detection thresholds and labeling rules, listed true positives, false positives and missed detections for each group, and manually viewed several pictures with the greatest changes. If the overall average is similar but the nighttime group is significantly worse, the quantization sensitive operator should be calibrated or checked around this group.

Make a bounded change

First only replace the calibration sample, keeping the model, input size and board end application the same. The test was then retested using the retained nighttime footage, and then checked to see if there was an increase in false alarms during the day. The sampling conditions are written into the model description upon delivery to facilitate re-evaluation after replacing the sensor.

Fill in the night test record

Conditions Evidence saved first Key observations
Under the street light The same original frame and annotation Missed detection of pedestrians with backlight
Infrared fill light Fill light switch status Close range overexposed target
Car lights passing by Continuous frames and exposure time Whether false alarms are concentrated in the highlighted area

Board documentation and references

ArmSoM Sige5

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →