-
Notifications
You must be signed in to change notification settings - Fork 29.5k
chore: update SigLIP2 model card #37624
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
chore: update SigLIP2 model card #37624
Conversation
Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the |
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.
Thanks for your contribution! :)
15.0% that image 0 is '2 cats' | ||
logits_per_image = outputs.logits_per_image | ||
probs = torch.sigmoid(logits_per_image) | ||
print(f"{probs[0][0]:.1%} that image 0 is '{candidate_labels[0]}'") |
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.
Let's also add the NaFlex example in the <hfoption id="AutoModel">
block too
<hfoption id="AutoModel">
FixRes example
NaFlex example
</hfoption>
</hfoptions>
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 tried something similar to Llama4 README. created separate tabs for NaFlex and FixRes variants. Have a look at it. Let me know if it works or not.
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.
Oh thats a really good idea! 👍
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
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.
Awesome, thanks for your work! We can merge after a few more minor nits :)
15.0% that image 0 is '2 cats' | ||
logits_per_image = outputs.logits_per_image | ||
probs = torch.sigmoid(logits_per_image) | ||
print(f"{probs[0][0]:.1%} that image 0 is '{candidate_labels[0]}'") |
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.
Oh thats a really good idea! 👍
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Addressed. Thank you for your suggestions! :) |
* update siglip2 model card * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> * address comments * separate naflex and fixres variant * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <[email protected]> --------- Co-authored-by: Steven Liu <[email protected]>
What does this PR do?
Update the model card for SigLIP2 to handle #36979
Fixes #36979
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
Documentation: @stevhliu