Skip to content

Change image size to maps in image featurizers - #329

Merged
jonatanklosko merged 1 commit into
mainfrom
jk-featurizer-size
Feb 9, 2024
Merged

Change image size to maps in image featurizers#329
jonatanklosko merged 1 commit into
mainfrom
jk-featurizer-size

Conversation

@jonatanklosko

@jonatanklosko jonatanklosko commented Feb 9, 2024

Copy link
Copy Markdown
Member

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
@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.

1 participant