Giter Club home page Giter Club logo

3d-grad-cam's Introduction

3D-Grad-CAM

Grad-CAM is a nice way to visualize what is your CNN model is actually looking for the prediction of the class with respect to the epecific Layer.

You can also have a look updated repo "3D-GuidedGradCAM-for-Medical-Imaging" : https://github.com/fitushar/3D-GuidedGradCAM-for-Medical-Imaging

This repo contains a code to visualize Grad-CAM using Tensorflow 2.0. To know more about Grad-CAM please read this paper https://arxiv.org/pdf/1610.02391.pdf

GradCAM

System requirement

  • python 3
  • Tenorflow 2.0
  • OpenCV
  • Matplot

3d-grad-cam's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

3d-grad-cam's Issues

Grad-CAM and Overlay cannot be displayed successfully

Hi @fitushar
Thank you for sharing such great repo.But when I run this program using my own data set and weights,I get the following error:
image
At the same time,Grad-CAM and Overlay cannot be displayed successfully,the results are shown below:
ๅ›พ็‰‡1

I printed the gradients and found that they were all 0.
image
image

I don't know what's wrong. Could you please give me some help?
Looking forward to your reply.
Thanks in advance.

Best.

CAM for action recognition?

Hello,

I took a quick look into the code and found your data in "nii.gz" format, but I assume it is still taken as images (height, width, channels) by the model right? I don't have much knowledge regarding biomedical imaging tho..

Could this script be used for video analysis? I fed my 3D CNN with video data, which has the dimension of time.

About dataset

Hello, do you know where I can find the dataset? what type of input dataset which you are using? Thank you.

Not getting unique heatmap for every slice in input volume

Hi,

I'm looking to apply Grad-CAM to a 3D CNN classifier that I have trained.
This CNN takes input volumes of shape (250,250,6). I have applied the same approach as outlined in Grad-CAM.ipynb to this network.

A heatmap of the correct shape is returned. However, I'm finding that only 4 of those heatmap slices are unique.

i.e.

heatmap[ : , : , 0 ] == heatmap[ : , : , 1 ]

and

heatmap[ : , : , 4 ] == heatmap[ : , : , 5 ]

I was wondering if you had come across this before or have any idea what could be going on.

Thank you,
James.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.