DefectRAG / results /encoder_diagnostic.json
Wizzas's picture
Upload source code (part 2)
ecb2a3f verified
Raw History Blame
25.3 kB
{
"candle": {
"deployed_policy": "q95",
"threshold": 0.15027016177773475,
"threshold_q95": 0.15027016177773475,
"recall_at_q95": 0.87,
"normal_false_alarm_rate_at_q95": 0.12,
"n_normal": 100,
"n_anomaly": 100,
"auroc_deployed": 0.941,
"auroc_all_banks": [
0.9558,
0.9536,
0.9443,
0.941
],
"recall_at_threshold": 0.87,
"normal_false_alarm_rate": 0.12,
"normal_score_median": 0.1176736019551754,
"normal_score_p95": 0.169543657451868,
"anomaly_score_median": 0.2126290127635002,
"by_defect_type": {
"chunk of wax missing": {
"n": 15,
"detected_at_threshold": 0.9333333333333333,
"auroc_vs_normals": 0.954
},
"damaged corner of packaging": {
"n": 25,
"detected_at_threshold": 0.88,
"auroc_vs_normals": 0.9452
},
"different colour spot": {
"n": 22,
"detected_at_threshold": 0.7727272727272727,
"auroc_vs_normals": 0.8936363636363637
},
"extra wax in candle": {
"n": 10,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.992
},
"foreign particals on candle": {
"n": 17,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9970588235294118
},
"other": {
"n": 1,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.95
},
"wax melded out of the candle": {
"n": 14,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9942857142857143
},
"weird candle wick": {
"n": 11,
"detected_at_threshold": 0.45454545454545453,
"auroc_vs_normals": 0.8036363636363636
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.02,
"detected_at_threshold": 0.8823529411764706,
"auroc_vs_normals": 0.941764705882353
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.158,
"detected_at_threshold": 0.7575757575757576,
"auroc_vs_normals": 0.899090909090909
},
"large": {
"n": 33,
"median_mask_area_percent": 0.45,
"detected_at_threshold": 0.9696969696969697,
"auroc_vs_normals": 0.9821212121212122
}
}
},
"capsules": {
"deployed_policy": "q95",
"threshold": 0.1439922600984573,
"threshold_q95": 0.1439922600984573,
"recall_at_q95": 0.82,
"normal_false_alarm_rate_at_q95": 0.08333333333333333,
"n_normal": 60,
"n_anomaly": 100,
"auroc_deployed": 0.9683333333333334,
"auroc_all_banks": [
0.968,
0.9687,
0.9713,
0.9683
],
"recall_at_threshold": 0.82,
"normal_false_alarm_rate": 0.08333333333333333,
"normal_score_median": 0.11277124285697937,
"normal_score_p95": 0.15005910843610762,
"anomaly_score_median": 0.19388512521982193,
"by_defect_type": {
"bubble": {
"n": 100,
"detected_at_threshold": 0.82,
"auroc_vs_normals": 0.9683333333333334
},
"discolor": {
"n": 70,
"detected_at_threshold": 0.7714285714285715,
"auroc_vs_normals": 0.9621428571428572
},
"leak": {
"n": 40,
"detected_at_threshold": 0.95,
"auroc_vs_normals": 0.9954166666666666
},
"misshape": {
"n": 28,
"detected_at_threshold": 0.9285714285714286,
"auroc_vs_normals": 0.993452380952381
},
"scratch": {
"n": 55,
"detected_at_threshold": 0.8909090909090909,
"auroc_vs_normals": 0.9848484848484849
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.032,
"detected_at_threshold": 0.5588235294117647,
"auroc_vs_normals": 0.921078431372549
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.149,
"detected_at_threshold": 0.9696969696969697,
"auroc_vs_normals": 0.990909090909091
},
"large": {
"n": 33,
"median_mask_area_percent": 1.586,
"detected_at_threshold": 0.9393939393939394,
"auroc_vs_normals": 0.9944444444444445
}
}
},
"cashew": {
"deployed_policy": "q95",
"threshold": 0.1289861112833023,
"threshold_q95": 0.1289861112833023,
"recall_at_q95": 0.9,
"normal_false_alarm_rate_at_q95": 0.18,
"n_normal": 50,
"n_anomaly": 100,
"auroc_deployed": 0.9608,
"auroc_all_banks": [
0.9556,
0.9578,
0.9688,
0.9608
],
"recall_at_threshold": 0.9,
"normal_false_alarm_rate": 0.18,
"normal_score_median": 0.10242883116006851,
"normal_score_p95": 0.1403797425329685,
"anomaly_score_median": 0.2092498540878296,
"by_defect_type": {
"burnt": {
"n": 14,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9857142857142858
},
"corner or edge breakage": {
"n": 17,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9976470588235294
},
"different colour spot": {
"n": 13,
"detected_at_threshold": 0.9230769230769231,
"auroc_vs_normals": 0.9661538461538461
},
"middle breakage": {
"n": 8,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"same colour spot": {
"n": 14,
"detected_at_threshold": 0.8571428571428571,
"auroc_vs_normals": 0.96
},
"small holes": {
"n": 22,
"detected_at_threshold": 0.6363636363636364,
"auroc_vs_normals": 0.8709090909090909
},
"small scratches": {
"n": 16,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.99375
},
"stuck together": {
"n": 6,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.03,
"detected_at_threshold": 0.7352941176470589,
"auroc_vs_normals": 0.8994117647058824
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.148,
"detected_at_threshold": 0.9696969696969697,
"auroc_vs_normals": 0.9854545454545455
},
"large": {
"n": 33,
"median_mask_area_percent": 0.403,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9993939393939394
}
}
},
"chewinggum": {
"deployed_policy": "q95",
"threshold": 0.15658171474933624,
"threshold_q95": 0.15658171474933624,
"recall_at_q95": 0.96,
"normal_false_alarm_rate_at_q95": 0.04,
"n_normal": 50,
"n_anomaly": 100,
"auroc_deployed": 0.9886,
"auroc_all_banks": [
0.9932,
0.9892,
0.9916,
0.9886
],
"recall_at_threshold": 0.96,
"normal_false_alarm_rate": 0.04,
"normal_score_median": 0.10335936769843102,
"normal_score_p95": 0.1388110876083374,
"anomaly_score_median": 0.38872937858104706,
"by_defect_type": {
"chunk of gum missing": {
"n": 47,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"corner missing": {
"n": 36,
"detected_at_threshold": 0.8888888888888888,
"auroc_vs_normals": 0.9738888888888889
},
"scratches": {
"n": 16,
"detected_at_threshold": 0.9375,
"auroc_vs_normals": 0.985
},
"similar colour spot": {
"n": 25,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9968
},
"small cracks": {
"n": 29,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.191,
"detected_at_threshold": 0.9117647058823529,
"auroc_vs_normals": 0.9705882352941176
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.551,
"detected_at_threshold": 0.9696969696969697,
"auroc_vs_normals": 0.9957575757575757
},
"large": {
"n": 33,
"median_mask_area_percent": 1.55,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
}
}
},
"fryum": {
"deployed_policy": "q95",
"threshold": 0.13227128088474271,
"threshold_q95": 0.13227128088474271,
"recall_at_q95": 0.94,
"normal_false_alarm_rate_at_q95": 0.02,
"n_normal": 50,
"n_anomaly": 100,
"auroc_deployed": 0.9924,
"auroc_all_banks": [
0.9892,
0.9958,
0.9892,
0.9924
],
"recall_at_threshold": 0.94,
"normal_false_alarm_rate": 0.02,
"normal_score_median": 0.10169889032840729,
"normal_score_p95": 0.1213790975511074,
"anomaly_score_median": 0.26332615315914154,
"by_defect_type": {
"burnt": {
"n": 9,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"corner or edge breakage": {
"n": 9,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"different colour spot": {
"n": 18,
"detected_at_threshold": 0.9444444444444444,
"auroc_vs_normals": 0.9844444444444445
},
"fryum stuck together": {
"n": 20,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"middle breakage": {
"n": 21,
"detected_at_threshold": 0.9523809523809523,
"auroc_vs_normals": 0.9914285714285714
},
"other": {
"n": 1,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"similar colour spot": {
"n": 22,
"detected_at_threshold": 0.9090909090909091,
"auroc_vs_normals": 0.9918181818181818
},
"small scratches": {
"n": 13,
"detected_at_threshold": 0.7692307692307693,
"auroc_vs_normals": 0.98
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.024,
"detected_at_threshold": 0.8529411764705882,
"auroc_vs_normals": 0.9841176470588235
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.217,
"detected_at_threshold": 0.9696969696969697,
"auroc_vs_normals": 0.9933333333333333
},
"large": {
"n": 33,
"median_mask_area_percent": 13.889,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
}
}
},
"macaroni1": {
"deployed_policy": "q80",
"threshold": 0.11047504395246506,
"threshold_q95": 0.14440965577960013,
"recall_at_q95": 0.57,
"normal_false_alarm_rate_at_q95": 0.01,
"n_normal": 100,
"n_anomaly": 100,
"auroc_deployed": 0.909,
"auroc_all_banks": [
0.918,
0.9107,
0.907,
0.909
],
"recall_at_threshold": 0.85,
"normal_false_alarm_rate": 0.24,
"normal_score_median": 0.09861122071743011,
"normal_score_p95": 0.13050181567668914,
"anomaly_score_median": 0.14945026487112045,
"by_defect_type": {
"chip around edge and corner": {
"n": 25,
"detected_at_threshold": 0.44,
"auroc_vs_normals": 0.7244
},
"different colour spot": {
"n": 16,
"detected_at_threshold": 0.9375,
"auroc_vs_normals": 0.9475
},
"middle breakage": {
"n": 10,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"similar colour spot": {
"n": 22,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9840909090909091
},
"small cracks": {
"n": 14,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9985714285714286
},
"small scratches": {
"n": 33,
"detected_at_threshold": 0.9696969696969697,
"auroc_vs_normals": 0.936969696969697
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.026,
"detected_at_threshold": 0.9411764705882353,
"auroc_vs_normals": 0.9511764705882353
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.053,
"detected_at_threshold": 0.8484848484848485,
"auroc_vs_normals": 0.8884848484848484
},
"large": {
"n": 33,
"median_mask_area_percent": 0.114,
"detected_at_threshold": 0.7575757575757576,
"auroc_vs_normals": 0.8860606060606061
}
}
},
"macaroni2": {
"deployed_policy": "q80",
"threshold": 0.12732562720775603,
"threshold_q95": 0.144144269824028,
"recall_at_q95": 0.48,
"normal_false_alarm_rate_at_q95": 0.07,
"n_normal": 100,
"n_anomaly": 100,
"auroc_deployed": 0.845,
"auroc_all_banks": [
0.8447,
0.8244,
0.8268,
0.845
],
"recall_at_threshold": 0.8,
"normal_false_alarm_rate": 0.28,
"normal_score_median": 0.11859115958213806,
"normal_score_p95": 0.14696984514594078,
"anomaly_score_median": 0.14316167682409286,
"by_defect_type": {
"breakage down the middle": {
"n": 15,
"detected_at_threshold": 0.9333333333333333,
"auroc_vs_normals": 0.9633333333333334
},
"color spot similar to the object": {
"n": 28,
"detected_at_threshold": 0.8571428571428571,
"auroc_vs_normals": 0.8942857142857142
},
"different color spot": {
"n": 17,
"detected_at_threshold": 0.9411764705882353,
"auroc_vs_normals": 0.8729411764705882
},
"other": {
"n": 1,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"small chip around edge": {
"n": 30,
"detected_at_threshold": 0.5666666666666667,
"auroc_vs_normals": 0.7083333333333334
},
"small cracks": {
"n": 13,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9661538461538461
},
"small scratches": {
"n": 36,
"detected_at_threshold": 0.8888888888888888,
"auroc_vs_normals": 0.9097222222222222
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.022,
"detected_at_threshold": 0.8235294117647058,
"auroc_vs_normals": 0.8355882352941176
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.047,
"detected_at_threshold": 0.8787878787878788,
"auroc_vs_normals": 0.8966666666666666
},
"large": {
"n": 33,
"median_mask_area_percent": 0.099,
"detected_at_threshold": 0.696969696969697,
"auroc_vs_normals": 0.803030303030303
}
}
},
"pcb1": {
"deployed_policy": "q95",
"threshold": 0.1414354294538498,
"threshold_q95": 0.1414354294538498,
"recall_at_q95": 0.86,
"normal_false_alarm_rate_at_q95": 0.08,
"n_normal": 100,
"n_anomaly": 100,
"auroc_deployed": 0.9597,
"auroc_all_banks": [
0.9525,
0.9479,
0.9503,
0.9597
],
"recall_at_threshold": 0.86,
"normal_false_alarm_rate": 0.08,
"normal_score_median": 0.10396964475512505,
"normal_score_p95": 0.1497390143573284,
"anomaly_score_median": 0.2245054543018341,
"by_defect_type": {
"bent": {
"n": 15,
"detected_at_threshold": 0.6666666666666666,
"auroc_vs_normals": 0.932
},
"melt": {
"n": 54,
"detected_at_threshold": 0.8888888888888888,
"auroc_vs_normals": 0.9598148148148148
},
"missing": {
"n": 20,
"detected_at_threshold": 0.85,
"auroc_vs_normals": 0.958
},
"scratch": {
"n": 21,
"detected_at_threshold": 0.9523809523809523,
"auroc_vs_normals": 0.9871428571428571
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.127,
"detected_at_threshold": 0.8235294117647058,
"auroc_vs_normals": 0.9414705882352942
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.198,
"detected_at_threshold": 0.8787878787878788,
"auroc_vs_normals": 0.9633333333333334
},
"large": {
"n": 33,
"median_mask_area_percent": 0.469,
"detected_at_threshold": 0.8787878787878788,
"auroc_vs_normals": 0.9748484848484849
}
}
},
"pcb2": {
"deployed_policy": "q95",
"threshold": 0.1252228133380413,
"threshold_q95": 0.1252228133380413,
"recall_at_q95": 0.84,
"normal_false_alarm_rate_at_q95": 0.12,
"n_normal": 100,
"n_anomaly": 100,
"auroc_deployed": 0.9062,
"auroc_all_banks": [
0.9202,
0.9289,
0.9283,
0.9062
],
"recall_at_threshold": 0.84,
"normal_false_alarm_rate": 0.12,
"normal_score_median": 0.09869059920310974,
"normal_score_p95": 0.14521096423268318,
"anomaly_score_median": 0.1799488514661789,
"by_defect_type": {
"bent": {
"n": 15,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9653333333333334
},
"melt": {
"n": 55,
"detected_at_threshold": 0.8727272727272727,
"auroc_vs_normals": 0.9134545454545454
},
"missing": {
"n": 19,
"detected_at_threshold": 0.5263157894736842,
"auroc_vs_normals": 0.7805263157894737
},
"scratch": {
"n": 20,
"detected_at_threshold": 0.95,
"auroc_vs_normals": 0.9545
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.159,
"detected_at_threshold": 0.6470588235294118,
"auroc_vs_normals": 0.8002941176470588
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.266,
"detected_at_threshold": 0.9696969696969697,
"auroc_vs_normals": 0.9557575757575758
},
"large": {
"n": 33,
"median_mask_area_percent": 0.446,
"detected_at_threshold": 0.9090909090909091,
"auroc_vs_normals": 0.9657575757575757
}
}
},
"pcb3": {
"deployed_policy": "q95",
"threshold": 0.1346755474805832,
"threshold_q95": 0.1346755474805832,
"recall_at_q95": 0.87,
"normal_false_alarm_rate_at_q95": 0.0891089108910891,
"n_normal": 101,
"n_anomaly": 100,
"auroc_deployed": 0.9547524752475247,
"auroc_all_banks": [
0.9434,
0.9477,
0.9466,
0.9548
],
"recall_at_threshold": 0.87,
"normal_false_alarm_rate": 0.0891089108910891,
"normal_score_median": 0.10837243497371674,
"normal_score_p95": 0.1407194584608078,
"anomaly_score_median": 0.18746265023946762,
"by_defect_type": {
"bent": {
"n": 20,
"detected_at_threshold": 0.85,
"auroc_vs_normals": 0.9168316831683169
},
"melt": {
"n": 43,
"detected_at_threshold": 0.9069767441860465,
"auroc_vs_normals": 0.9822703200552614
},
"missing": {
"n": 20,
"detected_at_threshold": 0.65,
"auroc_vs_normals": 0.8900990099009901
},
"scratch": {
"n": 25,
"detected_at_threshold": 0.92,
"auroc_vs_normals": 0.9897029702970297
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.162,
"detected_at_threshold": 0.7647058823529411,
"auroc_vs_normals": 0.9062317996505533
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.239,
"detected_at_threshold": 0.8787878787878788,
"auroc_vs_normals": 0.9660966096609661
},
"large": {
"n": 33,
"median_mask_area_percent": 0.578,
"detected_at_threshold": 0.9696969696969697,
"auroc_vs_normals": 0.9933993399339934
}
}
},
"pcb4": {
"deployed_policy": "q95",
"threshold": 0.1401524841785431,
"threshold_q95": 0.1401524841785431,
"recall_at_q95": 0.96,
"normal_false_alarm_rate_at_q95": 0.039603960396039604,
"n_normal": 101,
"n_anomaly": 100,
"auroc_deployed": 0.9865346534653465,
"auroc_all_banks": [
0.9888,
0.9906,
0.9903,
0.9865
],
"recall_at_threshold": 0.96,
"normal_false_alarm_rate": 0.039603960396039604,
"normal_score_median": 0.0978608950972557,
"normal_score_p95": 0.13882103562355042,
"anomaly_score_median": 0.19103556126356125,
"by_defect_type": {
"burnt": {
"n": 8,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9975247524752475
},
"damage": {
"n": 21,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9886845827439887
},
"dirt": {
"n": 42,
"detected_at_threshold": 0.9761904761904762,
"auroc_vs_normals": 0.9896275341819897
},
"extra": {
"n": 30,
"detected_at_threshold": 0.9666666666666667,
"auroc_vs_normals": 0.9900990099009901
},
"missing": {
"n": 33,
"detected_at_threshold": 0.9090909090909091,
"auroc_vs_normals": 0.9765976597659766
},
"scratch": {
"n": 17,
"detected_at_threshold": 0.9411764705882353,
"auroc_vs_normals": 0.9906814210832848
},
"wrong place": {
"n": 13,
"detected_at_threshold": 0.9230769230769231,
"auroc_vs_normals": 0.9832444782939832
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.359,
"detected_at_threshold": 0.9411764705882353,
"auroc_vs_normals": 0.9822364589400117
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.992,
"detected_at_threshold": 0.9393939393939394,
"auroc_vs_normals": 0.9867986798679867
},
"large": {
"n": 33,
"median_mask_area_percent": 2.664,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9906990699069907
}
}
},
"pipe_fryum": {
"deployed_policy": "q95",
"threshold": 0.17671903371810913,
"threshold_q95": 0.17671903371810913,
"recall_at_q95": 0.99,
"normal_false_alarm_rate_at_q95": 0.04,
"n_normal": 50,
"n_anomaly": 100,
"auroc_deployed": 0.9892,
"auroc_all_banks": [
0.995,
0.9964,
0.9962,
0.9892
],
"recall_at_threshold": 0.99,
"normal_false_alarm_rate": 0.04,
"normal_score_median": 0.1256011538207531,
"normal_score_p95": 0.15904454216361044,
"anomaly_score_median": 0.3052270710468292,
"by_defect_type": {
"burnt": {
"n": 16,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.99625
},
"corner and edge breakage": {
"n": 15,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9973333333333333
},
"different colour spot": {
"n": 10,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"middle breakage": {
"n": 10,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"similar colour spot": {
"n": 21,
"detected_at_threshold": 0.9523809523809523,
"auroc_vs_normals": 0.9580952380952381
},
"small cracks": {
"n": 10,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
},
"small scratches": {
"n": 24,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.995
},
"stuck together": {
"n": 10,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 1.0
}
},
"by_defect_size": {
"small": {
"n": 34,
"median_mask_area_percent": 0.045,
"detected_at_threshold": 0.9705882352941176,
"auroc_vs_normals": 0.9735294117647059
},
"medium": {
"n": 33,
"median_mask_area_percent": 0.17,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9957575757575757
},
"large": {
"n": 33,
"median_mask_area_percent": 0.456,
"detected_at_threshold": 1.0,
"auroc_vs_normals": 0.9987878787878788
}
}
}
}