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 the size of the input image #9

Closed
ZihangZhan opened this issue May 21, 2023 · 5 comments
Closed

change the size of the input image #9

ZihangZhan opened this issue May 21, 2023 · 5 comments

Comments

@ZihangZhan
Copy link

If I want to change the size of the input image and train it, what should I change

@xiawei20161308104
Copy link

same here!

@xiawei20161308104
Copy link

If I want to change the size of the input image and train it, what should I change

Have you solved it yet?Is there any way?thanks!

@tbwxmu
Copy link

tbwxmu commented Jul 3, 2023

args.image_size and also loading matched size of pre-trained weights.

@liuyjchj1
Copy link

Is the input image size of the SAM model fixed at 1024? It seems that an error occurs when inputting images of other sizes. I tried using a 512-sized image and it resulted in a RuntimeError: The size of tensor a (32) must match the size of tensor b (64) at non-singleton dimension 2.

@WuJunde
Copy link
Collaborator

WuJunde commented Jan 7, 2024

now the image size can be changed. just set '-image_size' parameter. sorry for the long wait.

@WuJunde WuJunde closed this as completed Jan 7, 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

No branches or pull requests

5 participants