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

Change image size to maps in image featurizers #329

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

jonatanklosko
Copy link
Member

@jonatanklosko jonatanklosko commented Feb 9, 2024

Initially CLIP was using a single integer as size and always resized the shortest edge. Now it supports both fixed height-width and shortest edge resizing (there is padding on top of it, so the shape is still static).

I updated all featurizers to use maps, such as %{height: 224, width: 224} and %{shortest_edge: 224}. This matches hf/transformers and in the feature we may need to support more of these (for other featurizers).

@jonatanklosko jonatanklosko merged commit 18bda76 into main Feb 9, 2024
2 checks passed
@jonatanklosko jonatanklosko deleted the jk-featurizer-size branch February 9, 2024 14:17
@joelpaulkoch joelpaulkoch mentioned this pull request Feb 14, 2024
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.

None yet

1 participant