Niketkumardheeryan / ML-CaPsule

ML-capsule is a Project for beginners and experienced data science Enthusiasts who don't have a mentor or guidance and wish to learn Machine learning. Using our repo they can learn ML, DL, and many related technologies with different real-world projects and become Interview ready.
MIT License
359 stars 312 forks source link

Heatmap Visualization of a Image Classification Model like Xception using GRAD-CAM #933

Closed AMS003010 closed 1 month ago

AMS003010 commented 1 month ago

What is the Xception model

The Xception model, short for "Extreme Inception," is a deep convolutional neural network architecture. Xception builds upon the Inception architecture but replaces the standard Inception modules with depthwise separable convolutions.

What is GRAD-CAM

GRAD-CAM, which stands for Gradient-weighted Class Activation Mapping, is a technique used in the field of computer vision to visualize the regions of an image that are important for a convolutional neural network's decision-making process.

My Proposal

So I would like to use Deep learning techniques like GRAD-CAM to explain why the Xception model is classifying that as an "Persian cat" ( Or anything else ) visually through a heatmap.

Use Case

Since ML techniques like CNN are essentially "Black Boxes", it is hard for us to understand why it made that choice. Using GRAD-CAM we are able to explain why the CNN model made that particular choice that it did. It helps us to visually understand the "why" of the classification.

Screenshots

Before sending it as an input to the GRAD-CAM Extractor image

After sending it as an input to the GRAD-CAM Extractor image

Additional Points

github-actions[bot] commented 1 month ago

Thanks for creating the issue,Please read the Pinned issued first and Readme.md in each Pull Request you made. Keep learning...

invigorzz313 commented 1 month ago

@AMS003010 the issue is assigned.

AMS003010 commented 1 month ago

@invigorzz313 I have made a PR Please do review and add necessary label

AMS003010 commented 1 month ago

@Niketkumardheeryan i have made the PR. Please do review