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

Do you support adding normal samples to Sam2-Unet network training? #28

Open
AaddX-ai opened this issue Nov 10, 2024 · 2 comments
Open

Comments

@AaddX-ai
Copy link

AaddX-ai commented Nov 10, 2024

What I mean is that I added normal samples to the training, and the mask image is all black. Will this reduce false positives and improve segmentation stability ?

@xiongxyowo
Copy link
Collaborator

Hi, for most public segmentation datasets, both the training and test sets contain only positive samples. In practice, this can lead to a higher false positive rate. Adding negative samples to the training set can help mitigate this, but it may lower the accuracy on positive samples. To address this, you might consider carefully adjusting the loss function to make the network more compatible with negative samples, as current IoU-based losses tend to be quite sensitive to all-zero black masks.

@AaddX-ai
Copy link
Author

many thanks for u@xiongxyowo

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