Skip to content
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

How to get the final Anomaly Prediction image which you present in your paper? #16

Open
pswena opened this issue Dec 21, 2021 · 2 comments

Comments

@pswena
Copy link

pswena commented Dec 21, 2021

image
How could I get the image like this which presented in your paper

@pswena
Copy link
Author

pswena commented Dec 21, 2021

image

When I test demo.py, I get the anomaly prediction picture like this .But how to get the picture like what you presented in your paper?

@carlosdavidardon
Copy link

carlosdavidardon commented Jun 13, 2022

I haven't try it myself. But if you go to the Google Colab Demo Notebook ( https://colab.research.google.com/drive/1HQheunEWYHvOJhQQiWbQ9oHXCNi9Frfl?usp=sharing#scrollTo=gC-ViJmm23eM ) in section "Get and Display Perceptual Difference" they used this code:

heatmap_prediction = cv2.applyColorMap((255-diss_pred), cv2.COLORMAP_JET)
heatmap_pred_im = Image.fromarray(heatmap_prediction).resize((2048, 1024))
combined_image = Image.blend(img_og, heatmap_pred_im, alpha=.5)

display(combined_image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants