Download docs/inference_diagnostics.md from KirubaLS/parcelguard-reference-defect-detection: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/KirubaLS/parcelguard-reference-defect-detection/resolve/main/docs/inference_diagnostics.md
- Command line
-
hf download hf://KirubaLS/parcelguard-reference-defect-detection/docs/inference_diagnostics.md
-
curl -L -o inference_diagnostics.md https://huggingface.co/KirubaLS/parcelguard-reference-defect-detection/resolve/main/docs/inference_diagnostics.md
Real Image Inference Diagnostic
Test case
- Item identifier:
013aef02 - Ground truth: DEFECT
- Baseline prediction: NORMAL
- Anomaly score: 0.6136
- Provisional threshold: 0.70
- Feature map: 28 x 28
- Query image dimensions: 2048 x 2048
- References: 3
Outcome
This test produced a false negative.
The anomaly score was below the provisional threshold:
0.6136 < 0.70
The prediction pipeline executed successfully, but the defective query was classified as normal.
Spatial observations
The anomaly heatmap showed higher feature discrepancies around the product arrangement, containers, wrapping and barcode region.
The top 5% spatial locations contained 40 cells out of 784.
The highest observed local discrepancy was approximately 0.8590.
These locations represent feature discrepancies, not confirmed physical damage locations.
Interpretation
The query and reference images contain differences in product orientation, arrangement and barcode placement.
The current baseline compares corresponding spatial coordinates without geometric registration. These variations may contribute to the observed feature distances.
The precise cause of the false negative has not been established.
Important visualization limitation
The overlay independently normalizes each anomaly map for display. Its brightness should not be interpreted as a calibrated anomaly probability or compared directly across images.
Follow-up
- Preserve this case as a baseline failure example.
- Do not tune the threshold using this single image.
- Evaluate multiple queries before making architectural changes.
- Investigate reference alignment and viewpoint sensitivity.
- Validate any proposed improvement on independent data.