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

Why is my Contrast Loss always 0? #31

Open
liubaoning111 opened this issue Sep 17, 2024 · 4 comments
Open

Why is my Contrast Loss always 0? #31

liubaoning111 opened this issue Sep 17, 2024 · 4 comments

Comments

@liubaoning111
Copy link

No description provided.

@leo-lab-511
Copy link

我的也是,但不是对比损失
Snipaste_2024-09-18_09-51-13

@zhang-haojie
Copy link
Owner

In cases with only one target in an image, the absence of negative samples in the contrast loss construction results in a constant 0 loss. We have used a method to treat the background as a special instance. We will update the new version to avoid this problem soon.

@liubaoning111
Copy link
Author

你好,我想问下,咱们的弱监督是可以分割多个目标的吗?我有一个msk有四个目标,背景0,目标1:1,目标2:2,目标3:3,可以直接实现分割吗?

@zhang-haojie
Copy link
Owner

可以的,SAM原本支持什么样的分割,我们也同样支持。弱监督的格式是SAM接收的prompt格式。

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

3 participants