Closed transcranial closed 4 years ago
@transcranial Just merged a patch for this on master, should be good.
@RaphaelMeudec Could you please tell me what does this mean? I am using tensorflow 2.1.
I still can't see the heatmap when the image is rescaled. I have a python file in which I do import tf_explain and Occlusion sensitivity callback.
In the
heatmap_display
function,original_image
is assumed to be [0, 255]. For GradCAM, when runningexplain
, the original image is passed to the model as well asheatmap_display
. However, if the model takes a rescaled input, such as [0, 1], then the output will not display the image since it's using the rescaled image.In the GradCAM example, change this line to:
and observe the output.