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

OOD Detection using COOD #493

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

rajeshgangireddy
Copy link
Collaborator

This PR adds :

  • An COOD model module. Contains all the required utils as well.
  • An OODTrigger that can be added to the post inference hook.
  • A notebook which uses COOD and the OOD Trigger.

@rajeshgangireddy rajeshgangireddy marked this pull request as draft September 10, 2024 17:45
@rajeshgangireddy
Copy link
Collaborator Author

Keeping it as Draft.

TODO :

Notebook is not fully there. Needs some comments and descriptions
COOD model requires some clean up.

Copy link
Collaborator

@ljcornel ljcornel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Rajesh, many thanks for the PR. I haven't looked at the notebook yet, the rest of the pr looks good though. I do feel that the 'COODModel' class is pretty cluttered, I think it would be better to split this up into two classes: The 'COODModel' which handles the data preprocessing and prediction, and a new 'OODTrainer' class that interacts with Geti, creates the deployment, pulls the data and prepares it for training. The 'OODTrainer' could output the 'COODModel' as a result of its 'train' method. This would make the feature more modular, rather than putting all the responsibilities in a single class. What do you think?

geti_sdk/detect_ood/ood_model.py Outdated Show resolved Hide resolved
geti_sdk/detect_ood/ood_model.py Outdated Show resolved Hide resolved
geti_sdk/detect_ood/ood_model.py Outdated Show resolved Hide resolved
self._thresholds_prefix + threshold_name
]

def _train_cood_hpo(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is not used at the moment?

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 this pull request may close these issues.

2 participants