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

Wrong box prompt of init_cond_frames if it is empty in training framework. #470

Open
z-jiaming opened this issue Dec 3, 2024 · 0 comments

Comments

@z-jiaming
Copy link

Thanks for your great work!

Since SAM2 is an interactive project, you have included hints in the form of boxes or points in the training framework and and may provide multiple init prompt frames (num_init_cond_frames).
However, since the data augmentation only guarantees that the mask GT of the first frame is not empty, the rest of the GTs are not guaranteed.
If a frame other than the first has an empty GT but is selected to provide a box prompt, it will obtain [H, W, -1, -1] box with mask_to_box (and noised latter), resulting in an incorrect box prompt.
image

This part may require additional checking operations.

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