Class Activation Map is an unsupervised way of doing object localization with accuracy near par with supervised methods.
Custom implementation of CAM using Keras with a Tensorflow backend. Takes in an image and returns
Within CAM.py, please read docstring of:
Must have a keras model with a global average pooling layer after the final convolution layer followed by a single input -> output layer (Part 1 jupyter notebook)
Part 2 jupyer notebook contains examples of what CAM.py can do
pip install matplotlib
pip install keras
pip install numpy
OPTIONAL: OpenCV for CAM overlay on image
This project is licensed under the MIT License - see the LICENSE.md file for details
Original paper: https://arxiv.org/pdf/1512.04150.pdf