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 |
stevhliu
left a comment
There was a problem hiding this comment.
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.
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.
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.
Oh thats a really good idea! 👍
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
stevhliu
left a comment
There was a problem hiding this comment.
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.
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 <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
|
Addressed. Thank you for your suggestions! :) |
* update siglip2 model card * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * address comments * separate naflex and fixres variant * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * Update docs/source/en/model_doc/siglip2.md Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> --------- Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
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