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

Overlapping instances in fine-tuning SAM #82

Open
Ashutosh1995 opened this issue Mar 14, 2024 · 2 comments
Open

Overlapping instances in fine-tuning SAM #82

Ashutosh1995 opened this issue Mar 14, 2024 · 2 comments

Comments

@Ashutosh1995
Copy link

Hello @bnsreenu

Thanks for providing the repo for fine-tuning the SAM model on the custom dataset. My question is that in case where the instances of the object are overlapping then in that case, how can I change the code to include different boxes for different objects?

Kindly provide your suggestion?
temp_binary

@RoyAn2386
Copy link

Hi man,

I think you should prepare your label as instance mask (random color for each object), then use finding contour to get different boxes. T.T

@Ashutosh1995
Copy link
Author

Thanks for your reply! You mean to say in this mask, assign each object with different color as in different ID, apply patchify. In that 256x256 instance, see for which instance is coming and get boxes using contours?

Also I saw in the notebook that you were using ViT-B, doesn't that internally resizes the image to be 1024x1024? If that's the case, what GPU are you using to finetune this model?

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

2 participants