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

How can we use OmniXai for object detection and Segmentation task? #94

Open
Fardeenkhan1 opened this issue Oct 4, 2023 · 3 comments
Open

Comments

@Fardeenkhan1
Copy link

I was trying to run Integrated Gradient technique for some classification models and i am able to do that.
But how can we use OmniXAI for models that gives bounding box as output?

@yangwenz
Copy link
Collaborator

yangwenz commented Oct 4, 2023

Hi, you need to implement a wrapper over the object detection model so that the output of this model wrapper is the object class or the object location. This wrapped model should have a similar interface as image classification models.

@Fardeenkhan1
Copy link
Author

Hi, Do you have some guidelines or implementations on how to achieve this with object detection model.

@yangwenz
Copy link
Collaborator

We don't have specific examples yet. But you can check the implementation of GradCAM:

https://github.com/salesforce/OmniXAI/blob/main/omnixai/explainers/vision/specific/gradcam/gradcam.py
https://github.com/salesforce/OmniXAI/blob/main/omnixai/explainers/vision/specific/gradcam/pytorch/gradcam.py

These two files provide enough info for how to implement a wrapper. The basic idea is that the input is an image, the output is either class label or object location which can be used to compute losses.

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