xmuyzz / Dual3dCNN-GradCAM-Keras

Keras implementation for GradCAM analysis for dual 3D CNN model.
4 stars 1 forks source link

Grad-CAM map cannot be displayed successfully #1

Open pangda72 opened 2 years ago

pangda72 commented 2 years ago

Hi,@xmuyzz

Thank you for sharing such great repo,but When I run this program on my own data set and weights ,no error but I couldn't display the Grad-CAM map successfully . I printed the heatmap values and found that they were all nan. I don't know what went wrong. Could you please give me some help ? image Thanks in advance!

Looking forward to your reply! Best

xmuyzz commented 2 years ago

Hi,@xmuyzz

Thank you for sharing such great repo,but When I run this program on my own data set and weights ,no error but I couldn't display the Grad-CAM map successfully . I printed the heatmap values and found that they were all nan. I don't know what went wrong. Could you please give me some help ? image Thanks in advance!

Looking forward to your reply! Best

Hi @pangda72 , I am not sure what went wrong based on your screenshot above. I used the code in this repo to generate GradCAM images and they all looked good to me. Do you mind sending your code and image sample to me? I can take a look at them and try to figure out what went wrong.

pangda72 commented 2 years ago

Hi,@xmuyzz Thank you for sharing such great repo,but When I run this program on my own data set and weights ,no error but I couldn't display the Grad-CAM map successfully . I printed the heatmap values and found that they were all nan. I don't know what went wrong. Could you please give me some help ? image Thanks in advance! Looking forward to your reply! Best

Hi @pangda72 , I am not sure what went wrong based on your screenshot above. I used the code in this repo to generate GradCAM images and they all looked good to me. Do you mind sending your code and image sample to me? I can take a look at them and try to figure out what went wrong.

Dear @xmuyzz Thank you for your timely reply. I feel very happy.I don't mind uploading my code and samples at all,I think it's my fault,Because I have successfully run your shared code in other open source projects . Since my program is a bit messy, I might need a little time to sort it out.I'll be quick.Thank you very much indeed.

Best.