Is there a size limit for the input image?
#55
by
frankfan1979
- opened
Is there a size limit for the model's input image?
There's a max pixel limit for input images in the config:
https://huggingface.co/jinaai/jina-embeddings-v4/blob/main/preprocessor_config.json#L17
If your image is larger, it will be downscaled automatically. You can increase this value when loading the model, but I wouldn't make it past 12,845,056 - this seems to be a recommended upper limit set by Qwen2.5-VL-3B-Instruct which is a backbone of jina-embeddings-v4
thank you.
Some addition, you can also directly set a max_pixels
parameter it in encode_image
function without reloading the model.