Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add SigLIP #2113

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add SigLIP #2113

wants to merge 4 commits into from

Conversation

james77777778
Copy link
Collaborator

@james77777778 james77777778 commented Feb 26, 2025

This PR mainly adds SigLIPBackbone

You can check the colab for numerical results:
https://colab.research.google.com/drive/1R99yFJCbxTEpcxFHa2RtlwQWahUIPCJC?usp=sharing

Preset Library Probability
siglip_base_patch16_224 transformers 19.8% (cats); 0.0% (dogs)
siglip_base_patch16_224 keras_hub 18.9% (cats); 0.0%(dogs)

Let me know if this looks good to you. If so, I will add more presets.

Notes:

  • We need to modify keras.layers.Resizing to configure antialias. Otherwise, the numerical results will differ a lot (e.g., 18.9% -> 13.5%)
  • If I'm avaiable, I will look into SigLIP2
  • fit is not supported yet but adding it should be straightforward

@james77777778 james77777778 added the kokoro:force-run Runs Tests on GPU label Feb 26, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 26, 2025
@james77777778 james77777778 added the kokoro:force-run Runs Tests on GPU label Feb 26, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 26, 2025
@james77777778 james77777778 added the kokoro:force-run Runs Tests on GPU label Feb 26, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 26, 2025
@james77777778 james77777778 added the kokoro:force-run Runs Tests on GPU label Feb 27, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 27, 2025
@james77777778 james77777778 added the kokoro:force-run Runs Tests on GPU label Feb 27, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 27, 2025
@james77777778 james77777778 added the kokoro:force-run Runs Tests on GPU label Feb 27, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Feb 27, 2025
@james77777778
Copy link
Collaborator Author

The failure of the JAX GPU CI should be irrelevant to this PR

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants