Warning while using Keras make_gradcam_heatmap method

/usr/local/lib/python3.7/dist-packages/matplotlib/image.py:452: UserWarning: Warning: converting a masked element to nan.
dv = np.float64(self.norm.vmax) - np.float64(self.norm.vmin)
/usr/local/lib/python3.7/dist-packages/matplotlib/image.py:459: UserWarning: Warning: converting a masked element to nan.
a_min = np.float64(newmin)
/usr/local/lib/python3.7/dist-packages/matplotlib/image.py:464: UserWarning: Warning: converting a masked element to nan.
a_max = np.float64(newmax)
:6: UserWarning: Warning: converting a masked element to nan.
/usr/local/lib/python3.7/dist-packages/numpy/core/_asarray.py:83: UserWarning: Warning: converting a masked element to nan.
return array(a, dtype, copy=False, order=order)

The above given is the warning when I tried using keras’ make_gradcam_heatmap method in Google Colab. The heatmap is not getting plotted. Please help me in solving it.

1 Like

Hi @Ashish_Panda

Welcome to the TensorFlow Forum!

The given information is not enough to understand the issue. Please provide minimal reproducible code to replicate the error.

Thank you.