sicara / tf-explain

Interpretability Methods for tf.keras models with Tensorflow 2.x
https://tf-explain.readthedocs.io
MIT License
1.02k stars 111 forks source link

add threshold in GRAD-CAM #168

Open laborer123 opened 3 years ago

laborer123 commented 3 years ago

image if the blue region is restored to the original image by threshold could be better

laborer123 commented 3 years ago

cv2.addWeighted can‘t solve this problem. because it's mapped from the heatmap

RaphaelMeudec commented 3 years ago

I'm not sure what you mean. Do you mean that the activation map overlay should be thresholded?

laborer123 commented 3 years ago

I'm not sure what you mean. Do you mean that the activation map overlay should be thresholded?

I think the blue area could restore original image pixel value, only show the circled part of heatmap, but i didn't find a way to do that image

image