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

Input mask prompt #141

Open
theFilipko opened this issue Aug 26, 2024 · 0 comments
Open

Input mask prompt #141

theFilipko opened this issue Aug 26, 2024 · 0 comments

Comments

@theFilipko
Copy link

Hello :)
I would like to ask you why do you resize the label used as a prompt to 256x256 without padding?
https://github.com/SysCV/sam-hq/blob/ac19724c47b13689e5d9596277a6522b371001c8/train/train.py#L412C40-L412C46

My understanding is, that for SAM you need to resize the longest side of the image (1024px), also the input prompts. SAM internally makes the input image square by padding with top-left alignment. The points and boxes SAM does not adjust because of the top-left alignment. Therefore, I suppose, that the same should be applied to the input mask (prompt), otherwise the prompt is not aligned with the image.

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