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

Support for GradCam #45

Open
johnbradley opened this issue Sep 20, 2024 · 1 comment · May be fixed by #64
Open

Support for GradCam #45

johnbradley opened this issue Sep 20, 2024 · 1 comment · May be fixed by #64

Comments

@johnbradley
Copy link
Collaborator

Look into the possibility of using pytorch-grad-cam with bioclip. As part of this we would need to gather feedback on the caveats related using GradCam with pybioclip.

@johnbradley
Copy link
Collaborator Author

We already have a branch with a notebook that makes a first pass at using pytorch-grad-cam:
https://github.com/Imageomics/pybioclip/blob/gradcam/GradCam.ipynb

johnbradley added a commit that referenced this issue Nov 20, 2024
Changes classifier base class to extend nn.Module and implements the
forward() method so the classifiers can be used with pytorch-grad-cam.

Fixes #45
johnbradley added a commit that referenced this issue Nov 20, 2024
Changes classifier base class to extend nn.Module and implements the
forward() method so the classifiers can be used with pytorch-grad-cam.

Fixes #45
johnbradley added a commit that referenced this issue Nov 20, 2024
Changes classifier base class to extend nn.Module and implements the
forward() method so the classifiers can be used with pytorch-grad-cam.

Fixes #45
johnbradley added a commit that referenced this issue Nov 20, 2024
Changes classifier base class to extend nn.Module and implements the
forward() method so the classifiers can be used with pytorch-grad-cam.
torch.no_grad was removed from create_probabilities because the
calling functions already did this and pytorch-grad-cam needs grad
enabled.

Fixes #45
@johnbradley johnbradley linked a pull request Nov 20, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant