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

Interpretation of the Heatmap #7

Closed
bnaman50 opened this issue Apr 19, 2019 · 1 comment
Closed

Interpretation of the Heatmap #7

bnaman50 opened this issue Apr 19, 2019 · 1 comment

Comments

@bnaman50
Copy link

Hey Jacob,

Thanks for this great and easy to use implementation of meaningful perturbation algorithm.

I just have a small question. Could you please help me understand the interpretation of the heatmap. As per my understanding, the heatmap is the same thing as the mask (values between 0 and 1) representing the minimum region in the image that you would suppress to reduce the prediction score maximally.

My understanding that the mask is same as the heatmap is based on the following lines from your code:

mask = 1 - mask
heatmap = cv2.applyColorMap(np.uint8(255*mask), cv2.COLORMAP_JET)
heatmap = np.float32(heatmap) / 255

Could you please confirm whether my understanding is correct or is it something else?

Thanks,
Naman

@jacobgil
Copy link
Owner

jacobgil commented Apr 19, 2019 via email

@jacobgil jacobgil closed this as completed Jun 4, 2019
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