[go: nahoru, domu]

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

initial commit adding support for from_lmm and specifically for Pal… #1221

Merged
merged 9 commits into from
May 24, 2024

Conversation

SkalskiP
Copy link
Collaborator

Initial support for from_lmm and specifically for PaliGemma.

```python
import supervision as sv

paligemma_result = "<loc0256><loc0256><loc0768><loc0768> cat"

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

Copy link
Collaborator Author

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. :)

@SkalskiP SkalskiP marked this pull request as ready for review May 22, 2024 15:44
@SkalskiP SkalskiP merged commit 2723735 into develop May 24, 2024
9 checks passed
@LinasKo
Copy link
Collaborator
LinasKo commented May 24, 2024

@SkalskiP, very quick one: I've just noticed that LLM is not in __init__.py, so the example with sv.LLM.PALIGEMMA didn't work.

@SkalskiP
Copy link
Collaborator Author

@LinasKo Good catch! I just fixed it.

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.

None yet

3 participants