Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The problem faced by GradCAM and Occlusion Sensitivity methods when dealing with images with more than 3 bands. #323

Open
BEEILAB opened this issue Dec 26, 2023 · 1 comment
Assignees

Comments

@BEEILAB
Copy link

BEEILAB commented Dec 26, 2023

Description

  • Imagine we have a task for image classification in the deep learning model that takes a tensor with the shape of mnc. Here, m and n are the height and width of the input tensor respectively and c is the number of channels. The Quantus toolkit for GradCAM and Occlusion Sensitivity faces an error that originates from opencv packages and mentions that the number of bands in the input image is more than 3. Wide range of tasks work with more than 3 bands. So, maybe you can modify functions to avoid such errors! Thanks

@annahedstroem

@annahedstroem
Copy link
Member

Hi @BEEILAB thanks for sharing this! Can you paste the code that causes this error? It is helpful to know more e.g., the type fo model (torch or tf) and the dims of your data etc. Thanks!

@annahedstroem annahedstroem self-assigned this Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants