ByChelsea / VAND-APRIL-GAN

[CVPR 2023 Workshop] VAND Challenge: 1st Place on Zero-shot AD and 4th Place on Few-shot AD
162 stars 20 forks source link

Guidance on Threshold Setting for Accurate Defect Detection in Heatmap Visualizations (red mark) #20

Open JunseokLee3 opened 6 months ago

JunseokLee3 commented 6 months ago

Thank you so much for your code in AND-APRIL-GAN. Thanks to your published code, I was able to study this field better and understand coding more deeply.

However, I have a question regarding visualization. In the visualization, I see that it uses a heatmap, and usually, defects are marked with a red mark. But in my case, due to incorrect threshold settings, not only the defects but also other parts are marked in red. Do you have any ideas on how to address this issue? Or what kind of values should I generally set for the threshold?"

ByChelsea commented 6 months ago

Hello, sorry for the late reply. Heatmaps are also quite common, for example in DRAEM, Uninformed Students, and UniAD. As for the appropriate threshold, in fact, I haven't done many experiments, but I think the threshold corresponding to the maximum F1 score might be suitable.