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

Question about image preprocessing methods in SAM1 and SAM2 #570

Open
qirui-chen opened this issue Feb 13, 2025 · 0 comments
Open

Question about image preprocessing methods in SAM1 and SAM2 #570

qirui-chen opened this issue Feb 13, 2025 · 0 comments

Comments

@qirui-chen
Copy link

Hello authors, thank you for your excellent work. I would like to ask why, in SAM1, the image is first resized by its long side to 1024, and then padded for the short side, whereas in SAM2, the image is directly resized to (1024, 1024) using PIL.Image's resize method. Wouldn't this cause distortion of the aspect ratio?

Additionally, which resolution and which pixels are the loss applied to during training?

Thank you!

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

1 participant