In scorecam.py, the code gets the model features using model.features (line 28).
This works for architectures like AlexNet and VGG, but doesn't work for WideResNet or ResNet with the error message: 'ResNet' object has no attribute 'features'
Any idea how to run Score-CAM for a pre-trained WideResNet model?
In
scorecam.py
, the code gets the model features usingmodel.features
(line 28).This works for architectures like AlexNet and VGG, but doesn't work for WideResNet or ResNet with the error message:
'ResNet' object has no attribute 'features'
Any idea how to run Score-CAM for a pre-trained WideResNet model?