-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply PaDiM to another domain. #16
Comments
I applied on another domain, was fine, |
I've already tried to make image resolution as 160x160 by padding. but it didn't work properly. |
I'm taking about heatmap result. i think normal data has to be covered by blue but it has abnormal points which is colored by red. I don't need gt masks because I'm gonna shift threshold by circumstances. |
Thanks for replying! |
because of this code if you change ax = ax_img[2].imshow(heat_map, cmap='jet', norm=None) You will see the range of color bar range changing. However, because heat maps are relative to the data, the high data will still look red. easy to trick heatmap heat_map = scores[i] * 255 <--below this code |
like I said, I checked score maps of normal and abnormal data, it was not heat map range problem. I fixed heat map range with static number |
It doesn't mean anything to fix the heat map range. This is because when displaying image data in matplot, scale up to range. The scale should be prevented by putting the max value into the image data. Have you tested it like below?
I'm sorry if it wasn't the answer you wanted. |
Try to swap this lines: If threshold is too high (>1), then some mask values become 1 then all mask values become 0 (as all values will be under threshold) |
Hi I'm sangkyu from south korea.
I am trying to apply PaDiM to another domain.
Several issues arose during application.
I want to do anomaly detection with an image of size 80x160x3.
The score distribution of the normal image tends to be higher than that of the abnormal image. I know that PaDiM is sensitive to the location, and the background was also erased with contours to minimize the background effect. However, the distribution of normal scores is still high. Can you leave any comments on this?
The text was updated successfully, but these errors were encountered: