Skip to content

feat(Detections): add support for Kosmos-2 #1903

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

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open

Conversation

soumik12345
Copy link
Contributor

Description

Add visualization and annotation support for Kosmos-2.

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How has this change been tested, please provide a testcase or example of how you tested the change?

Colab Notebook

Docs

  • Docs updated? What were the changes:

@SkalskiP
Copy link
Collaborator

My intention is to include this PR in supervision-0.27.0, but before we do that, we need to release supervision-0.26.1 with all the hotfixes we’ve merged over the past few days. The only piece I’m missing is #1898, where we are still having a discussion.

Comment on lines +1461 to +1468
kosmos_result = (
'An image of a small statue of a cat, with a gramophone and a man walking past in the background.',
[
('a small statue of a cat', (12, 35), [(0.265625, 0.015625, 0.703125, 0.984375)]),
('a gramophone', (42, 54), [(0.234375, 0.015625, 0.703125, 0.515625)]),
('a man', (59, 64), [(0.015625, 0.390625, 0.171875, 0.984375)])
]
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need to take all this as input? most of that stuff is unnecessary for us

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't need to, but this is the data structure that KOSMOS-2's post processor returns. I personally think asking the users to enter a different data structure would introduce a layer of friction.

@soumik12345 soumik12345 requested a review from SkalskiP July 25, 2025 15:36
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