[GH-ISSUE #379] Input image size #325

Open
opened 2026-10-31 21:13:54 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @MarkIsDoingIt on GitHub (Jul 20, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/379

I want to use a pretrained vision transformer from clip to extract feature from images. My original image size is 10241024. What is the largest input image size for any clip pretrained version? Resize the image to classical 224224 will have a loss of information. Thanks!

Originally created by @MarkIsDoingIt on GitHub (Jul 20, 2023). Original GitHub issue: https://github.com/openai/CLIP/issues/379 I want to use a pretrained vision transformer from clip to extract feature from images. My original image size is 10241024. What is the largest input image size for any clip pretrained version? Resize the image to classical 224224 will have a loss of information. Thanks!
Author
Owner

@hrithickcodes commented on GitHub (Jul 27, 2023):

CLIP's ViT-Large can take images of size 336. It's inevitable that there will be loss of information when downscale a 1024x1024 image to 336x336, but I think CLIP is robust enough. Make sure you use the ViT-L which has the smallest patch size (14).

<!-- gh-comment-id:1654491081 --> @hrithickcodes commented on GitHub (Jul 27, 2023): CLIP's ViT-Large can take images of size 336. It's inevitable that there will be loss of information when downscale a 1024x1024 image to 336x336, but I think CLIP is robust enough. Make sure you use the ViT-L which has the smallest patch size (14).
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#325
No description provided.