-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
initial commit adding support for from_lmm
and specifically for Pal…
#1221
Conversation
```python | ||
import supervision as sv | ||
|
||
paligemma_result = "<loc0256><loc0256><loc0768><loc0768> cat" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would be also useful for models like KOSMOS-2 so best to make it very general (this is a trend with VLMs these days) https://huggingface.co/docs/transformers/en/model_doc/kosmos-2#transformers.Kosmos2ForConditionalGeneration.forward.example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what I want to do is one from_lmm
function, providing separate dedicated parsers for each model. :)
…m_paligemma_support # Conflicts: # supervision/detection/lmm.py # test/detection/test_lmm.py
@SkalskiP, very quick one: I've just noticed that |
@LinasKo Good catch! I just fixed it. |
Initial support for
from_lmm
and specifically forPaliGemma
.