All Projects → nickbiso → Keras-Class-Activation-Map

nickbiso / Keras-Class-Activation-Map

Licence: other
Class Activation Map using Keras

Programming Languages

Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to Keras-Class-Activation-Map

Pytorch Grad Cam
Many Class Activation Map methods implemented in Pytorch for CNNs and Vision Transformers. Including Grad-CAM, Grad-CAM++, Score-CAM, Ablation-CAM and XGrad-CAM
Stars: ✭ 3,814 (+4727.85%)
Mutual labels:  class-activation-maps
Class-Activation-Mappings
Visualizing where the Convolution Network is looking through CAM.
Stars: ✭ 20 (-74.68%)
Mutual labels:  class-activation-maps
COVID-CXNet
COVID-CXNet: Diagnosing COVID-19 in Frontal Chest X-ray Images using Deep Learning. Preprint available on arXiv: https://arxiv.org/abs/2006.13807
Stars: ✭ 48 (-39.24%)
Mutual labels:  class-activation-maps

Keras Class Activation Map

This is one of many ways to visualize and get insights from a Convolutional Neural Network. What this basically does is that it creates a heatmap of "Class Activation" over the input image. A "class activation" heatmap is a 2D grid of scores associated with an specific output class, computed for every location in any input image, indicating how important each location is with respect to the class considered. Quite simply, it tells us which features the model is looking for. Keras will be the deep framing framework that is going to be utilized. I am starting to really love Keras, its just so easy to use and as an effect saves a lot of time coding. If tensorflow was used for this project it would have taken longer because tensorflow is not rich in helper functions. Everything that is needed for this are all in Keras.

Applying MAP to images of the same category (Greater Swiss Mountain Dog)

As we expected, the CNN is looking for specific features. In the example below, when it sees this kind of nose/mouth area of a dog the models predicts that it is a Greater Swiss Mountain Dog.

alt text alt text alt text alt text

Applying MAP to images of dogs (different breeds)

It is interesting what the model is looking for in order to identfy the breed of the dog. alt text alt text alt text alt text

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].