-
Notifications
You must be signed in to change notification settings - Fork 4
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
Anomaly Heatmaps #5
Comments
import math
import matplotlib.pyplot
distances = padim.predict(img.unsqueeze(0))
w = int(math.sqrt(distances.numel()))
amap = distances.view(w, w)
plt.imshow(amap)
plt.show() |
Thank you again for your super fast work. I appreciate your effort very much! |
@Pangoraw Why are we using Gaussian blurring as a preprocessing step for the amap? Is it just for visualization or is there any specific reason for doing that? |
Hi,
is there a way to get the anomaly heatmaps from your code?
Best regards,
Justus
The text was updated successfully, but these errors were encountered: