wofmanaf / Group-CAM

Code for paper: Group-CAM: Group Score-Weighted Visual Explanations for Deep Convolutional Networks
Apache License 2.0
107 stars 23 forks source link

Can't generate Group-CAM saliency map #11

Open ryhhtn opened 1 year ago

ryhhtn commented 1 year ago

Thanks for sharing the code.

I tried to Generate saliency map used by Group-CAD, but couldn't.

python3 demo.py --arch=vgg19 --target_layer=features.35 --input=Images/ILSVRC2012_val_00000073.JPEG --output=base.png
# demo.py, l48

gc = GroupCAM(model, target_layer=args.target_layer)

base

Code-Zark commented 12 months ago

I have this question too