pytorch-grad-cam icon indicating copy to clipboard operation
pytorch-grad-cam copied to clipboard

How to add the 'targets' attribute for the SwinT?

Open hongsheng-Z opened this issue 2 years ago • 1 comments

Thanks for your great work. I ran SwinT_examle.py on my own dataset. But the results were terrible, always failing to focus on the goal. But the results are much better after I use cnn and specify targets. I think the most likely reason is that I don't set the 'targers' in SwinT.

hongsheng-Z avatar Oct 30 '22 11:10 hongsheng-Z

Can you please try following the new Swin transformer section in this tutorial and let me know if it helped: https://jacobgil.github.io/pytorch-gradcam-book/HuggingFace.html

jacobgil avatar Nov 05 '22 19:11 jacobgil