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

Add SigLIP imagePreprocessor config #17

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

ishaaq
Copy link
Contributor

@ishaaq ishaaq commented Dec 11, 2024

SigLIP models do not use the default OpenCLIP preprocessor which can result in failure to load an index properly.

Also set size as per the base model's image_size configuration.

See https://docs.marqo.ai/latest/models/marqo/bring-your-own-model/#example-2-load-a-custom-openclip-model-from-a-public-url-with-custom-configurations

It is very important to provide the correct imagePreprocessor
configuration to match the model architecture as Marqo can not infer
the correct configuration from the model name when you load a
checkpoint file and will use the default configuration("OpenCLIP")

@ishaaq ishaaq requested a review from wanliAlex December 11, 2024 05:16
@ishaaq ishaaq force-pushed the ishaaq/set-siglip-image-processor branch from f800250 to c0d5278 Compare December 11, 2024 11:47
SigLIP models do not use the default OpenCLIP preprocessor which can
result in failure to load an index properly.

Also set size as per the base model's image_size configuration.

See https://docs.marqo.ai/latest/models/marqo/bring-your-own-model/#example-2-load-a-custom-openclip-model-from-a-public-url-with-custom-configurations

> It is very important to provide the correct imagePreprocessor
> configuration to match the model architecture as Marqo can not infer
> the correct configuration from the model name when you load a
> checkpoint file and will use the default configuration("OpenCLIP")
@ishaaq ishaaq force-pushed the ishaaq/set-siglip-image-processor branch from c0d5278 to 43f1cc4 Compare December 11, 2024 11:51
@ishaaq ishaaq requested a review from wanliAlex December 11, 2024 12:26
@ishaaq ishaaq merged commit 063b230 into main Dec 12, 2024
1 check passed
@ishaaq ishaaq deleted the ishaaq/set-siglip-image-processor branch December 12, 2024 01:17
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.

2 participants