• Stars
    star
    217
  • Rank 182,446 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 2 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📦 PyTorch based visualization package for generating layer-wise explanations for CNNs.

Explainable CNNs

Torch Version Torchvision Version Python Version test workflow Price Maintained

📦 Flexible visualization package for generating layer-wise explanations for CNNs.

It is a common notion that a Deep Learning model is considered as a black box. Working towards this problem, this project provides flexible and easy to use pip package explainable-cnn that will help you to create visualization for any torch based CNN model. Note that it uses one of the data centric approach. This project focusses on making the internal working of the Neural layers more transparent. In order to do so, explainable-cnn is a plug & play component that visualizes the layers based on on their gradients and builds different representations including Saliency Map, Guided BackPropagation, Grad CAM and Guided Grad CAM.

Architechture

Star us on GitHub — it helps!

Usage

Install the package

pip install explainable-cnn

To create visualizations, create an instance of CNNExplainer.

from explainable_cnn import CNNExplainer

x_cnn = CNNExplainer(...)

The following method calls returns numpy arrays corresponding to image for different types of visualizations.

saliency_map = x_cnn.get_saliency_map(...)

grad_cam = x_cnn.get_grad_cam(...)

guided_grad_cam = x_cnn.get_guided_grad_cam(...)

To see full list of arguments and their usage for all methods, please refer to this file

You may want to look at example usage in the example notebook.

Output

Below is a comparison of the visualization generated between GradCam and GuidedGradCam

Contributors

Thanks goes to these wonderful people (emoji key):


Ashutosh Hathidara

💻 🎨 🔬 🚧 ⚠️

Lalit Pandey

🔬 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

References

More Repositories

1

masterPortfolio

🔥 The Complete Customizable Software Developer Portfolio Template which lets you showcase your work and provides each and every detail about you as Software Developer.
JavaScript
3,480
star
2

react-awesome-shapes

🌀 Insert Awesome Shapes into Your React Site with Ease.
TypeScript
628
star
3

react-liquidswipe

🚀 Smooth Liquid Swipe Animation to transition between different components.
JavaScript
402
star
4

react-awesome-loaders

🚀 High quality, super responsive and completely customisable Loading Animations to insert into your website with single line of code.
JavaScript
250
star
5

truvisory

This project is meant to provide resources to users who want to access good LinkedIn posts which contains resources to learn any Technology, Design, Self-Branding, Motivation etc. You can visit project by:
JavaScript
214
star
6

neuro-symbolic-sudoku-solver

⚙️ Solving sudoku using Deep Reinforcement learning in combination with powerful symbolic representations.
Python
67
star
7

Stock-Prediction-using-LSTM

This Project is predicting stocks for 32 companies with error less than 1% using LSTM Networks.
Jupyter Notebook
59
star
8

react-lazy-load

Lazy loading in react
JavaScript
49
star
9

genai-posts

Repository contains LinkedIn posts about Generative AI knowledge sharing, learning resources and research explanations.
30
star
10

ashutosh1919

Python
28
star
11

react-parallax-demo

Demonstration of Parallax animation in React using react-spring
JavaScript
22
star
12

kubernetes-deploy-tutorial

This code is made for my youtube channel and corresponding to video given below
Python
21
star
13

Full_Stack_Web_Development_Course

This repo contains all assignments for Full stack web development course on coursera
JavaScript
18
star
14

birthday-wisher-whatsapp

Automation Flask Schedular to send birthday wishes to your friends on What'sApp
Python
18
star
15

flask_mongodb_dockerized_app

This code is for illustration to build dockerized Flask + MongoDB app as described in my youtube video below.
Python
17
star
16

food-lovers

PHP
14
star
17

docker-ml-tutorial

This project illustrate step by step procedure to start working on docker for Machine Learning projects.
Jupyter Notebook
13
star
18

github-graphql-api-tutorial

The code in this repository is completely illustrated and explained in my youtube video given below
JavaScript
12
star
19

data2vec-pytorch

Ready to run PyTorch implementation of Data2Vec 2.0: Highly efficient self-supervised representation learning for vision, speech and text.
Python
10
star
20

glassmorphism_demo

Demo for creating animated card with glassmorphism effect
JavaScript
9
star
21

mdp-diffusion

Text-guided image editing by manipulating diffusion path without any training.
Python
9
star
22

deeplearning-flask-react-app

This code is for illustrating deployment of end-to-end Deep Learning app in YouTube video given below.
JavaScript
9
star
23

quantum-perceptron

Implementation of Quantum Perceptron: An Artificial Neuron Implemented on an Actual Quantum Processor
Jupyter Notebook
9
star
24

leetcode-problems

Repository contains solved problems on leetcode based on difficulty level
Python
8
star
25

dvc_demo

Code in this repository illustrates DVC Demo and is prepared for the Youtube Video given below.
Python
8
star
26

FaceInterpolation

Exploring latent spaces of Face generation
Python
8
star
27

ashutosh1919.github.io

This is just a build generated of the code of masterPortfolio project
JavaScript
7
star
28

Survival_3D_Game

Survival Game using Unity3D
ShaderLab
6
star
29

consistency-models

Ready to run PyTorch implementation of Consistency Models: One-Step Image Generation & Editing
Shell
6
star
30

Face-Detection

Face Detection Using OpenCV
Jupyter Notebook
4
star
31

FaceGenerationStyleGAN

The objective of this project is to generate end to end Face Generation System using StyleGAN.
Python
4
star
32

Anomaly-Detection-in-Click-Stream-Data

Anomaly Detection in Click stream data of website.
Jupyter Notebook
4
star
33

ml-data-bot

Chatbot which helps you to get important statistics from the data to get insights to build Machine learning, Deep learning and Statistical models
Python
4
star
34

neurostack

The react-app which contains articles and blogs which makes Neurologists life easier professionally.
JavaScript
4
star
35

Facial-Emotion-Recognition

Facial Emotion Recognition
Jupyter Notebook
3
star
36

ChatUpProject

Java
3
star
37

llm-multichoiceqa

Large Language Model for Multiple Choice QA prediction
Python
3
star
38

WeatherBot

This is the bot which will give weather details of any place in the world.
Python
3
star
39

report-curator

Under Construction
TypeScript
3
star
40

context-cluster-pytorch

Ready to run PyTorch implementation of Context-Cluster: Image as Set of Points
Python
3
star
41

grocery-todo

Grocery-TODO list full stack project implemented using ReactJS (Frontend), Flask (Backend) and PostgreSQL (ElephantSQL) database.)
JavaScript
3
star
42

animated_logo_tutorial

Code given in this repository is created during the explanation in my YouTube video given below.
HTML
3
star
43

social-frontend-cloudflare

JavaScript
2
star
44

tissues-image-classification

Classifying tissue images to associated body part.
Jupyter Notebook
2
star
45

poc_workos_fashion_mnist

Python
2
star
46

git-and-opensource

This repository contains the presentation and complete flow of the workshop about git and opensource
1
star
47

poc_workos_regression

1
star
48

react-spring-pager

🔥 Ready to use one of the best available Animated ViewPager built using React Spring.
JavaScript
1
star
49

sentiment-react

Sample deploy of react app
JavaScript
1
star
50

Image_Compression_ML_Python

Image Compression Implementation
Python
1
star
51

test-repo

description of code
1
star
52

prettier-demo

This is demo to implement prettier in react-app
JavaScript
1
star