unilm icon indicating copy to clipboard operation
unilm copied to clipboard

about input image size

Open menghuaa opened this issue 1 year ago • 1 comments

Describe Model I am using beit base 224*224: Hello, Can the beit model only extract features from fixed size images? When I extract features from images with a resolution of 1920 * 1080, it will report an error "Input image heigth(512) doesn't match model (224)". How can I modify it so that it can extract features from images of any size?

menghuaa avatar Apr 07 '23 02:04 menghuaa

interpolate the position embedding, more details can be found at here and here

addf400 avatar Apr 11 '23 07:04 addf400