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

feat(ml): add more search models #11468

Merged
merged 9 commits into from
Jul 31, 2024
Merged

feat(ml): add more search models #11468

merged 9 commits into from
Jul 31, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Jul 31, 2024

Description

This PR adds a number of OpenCLIP search models that give very competitive results, especially considering their efficiency.

Also updates the code for exporting models to ONNX, mainly making the search models static and adding a line to ensure none of the ops are in training mode.

Monolingual:
ViT-B-16-SigLIP-256__webli
ViT-B-16-SigLIP-384__webli
ViT-B-16-SigLIP-512__webli
ViT-B-16-SigLIP__webli
ViT-L-16-SigLIP-256__webli
ViT-L-16-SigLIP-384__webli
ViT-SO400M-14-SigLIP-384__webli

This is how they stack up (models in red are new):

clip_quality_vs_efficiency

Source for recall@k scores, considering only image retrieval.

Multilingual:
ViT-B-16-SigLIP-i18n-256__webli
nllb-clip-base-siglip__mrl
nllb-clip-large-siglip__mrl

This is how they stack up (models in red are new):

multilingual_clip_quality_vs_efficiency

multilingual_clip_quality_by_language

Source for recall@k scores, considering only image retrieval.

@mertalev mertalev enabled auto-merge (squash) July 31, 2024 04:27
@mertalev mertalev merged commit 4158069 into main Jul 31, 2024
24 checks passed
@mertalev mertalev deleted the chore/ml-static branch July 31, 2024 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants