ramprs / grad-cam

[ICCV 2017] Torch code for Grad-CAM
https://arxiv.org/abs/1610.02391
1.5k stars 226 forks source link

test_caffe_model #13

Closed 3DMM-ICME2023 closed 6 years ago

3DMM-ICME2023 commented 6 years ago

Thanks a lot for sharing the very nice work! @ramprs @abhshkdz How can i get the Gradient class activation maps with the model trained with caffe rather than pytorch models? Moreover, could you please tell me how to generate the wonderful results as this website shows(https://medium.com/twentybn/visual-explanation-for-video-recognition-87e9ba2a675b) Thank you very much!

abhshkdz commented 6 years ago

How can i get the Gradient class activation maps with the model trained with caffe rather than pytorch models?

The classification code in this repository is for generating Grad-CAM using Caffe-pretrained models (using loadcaffe), that might be useful. For pytorch-compatibility, check out 1, 2, 3.

Moreover, could you please tell me how to generate the wonderful results as this website shows(https://medium.com/twentybn/visual-explanation-for-video-recognition-87e9ba2a675b)

By generating Grad-CAM on individual frames from the video clip, and stitching all the image-overlaid maps together back into a video.