Original matlab implementation and paper here.
- keras with theano backend
- h5py
- numpy
- matplotlib
- opencv3
Download the keras vgg16 weights.
- Use the
train_VGGCAM
function to fine tune the VGG16 model on your data. You should write your own code to feed the data into the network. - Use the
plot_classmap
function to then plot the class activation map on an image specified by its path.
On the Kaggle StateFarm dataset:
The network is focusing on the cell phone the driver is holding, regardless of driver ID or hand position.