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

About custom dataset. #55

Open
willpat1213 opened this issue Aug 2, 2023 · 2 comments
Open

About custom dataset. #55

willpat1213 opened this issue Aug 2, 2023 · 2 comments

Comments

@willpat1213
Copy link

There is a custom dataset, each picture contains multiple objects, how to modify the dataloader or model to train such a dataset?

@ymq2017
Copy link
Collaborator

ymq2017 commented Aug 11, 2023

Hi, for a multi-object dataset, you could simply modify the dataloader to sample one mask each time randomly.
Or you could load all masks and use them as prompts. Then we can change the prompt input to multi-mask, multi-box, multi-points. And the multi-mask output can be used to calculate loss with input multi GT mask.
The latter requires a larger code change and would work better.

@willpat1213
Copy link
Author

Thanks for your reply!
Another question is how do I design the loss in this case?

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