hcw-00 / PatchCore_anomaly_detection

Unofficial implementation of PatchCore anomaly detection
Apache License 2.0
317 stars 95 forks source link

Poor performance #12

Closed zhao-lun closed 2 years ago

zhao-lun commented 2 years ago

Hi.

Thank you for providing this repository. So I was trying to reproduce the result obtained in the paper[Cable category] Left[Input] / Middle[ Prediction] / Right [GT] image

Note that, I have applied a 0.8 threshold on the anomaly map after the normalization.

anomaly_map_norm[anomaly_map_norm< 0.8] = 0

However, I noticed for the 'Good' samples. the result become weird.

image

hcw-00 commented 2 years ago

Hi. It is normal. Cause anomaly maps are minmax normalized before saving.