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

a question about BG loss #3

Open
1173206772 opened this issue Jun 1, 2022 · 1 comment
Open

a question about BG loss #3

1173206772 opened this issue Jun 1, 2022 · 1 comment

Comments

@1173206772
Copy link

hello,your job is great。but I have some questions about the BGLOSS .
The first item is to make the prediction in the foreground area(distracting objects) near to 0, and the second one is to avoid learning a trivial solution (the paper says that we do not have the ground truth for the background area). however. can we directly use CELoss, like this nn.CELoss(output,1-label) to achieve BGLoss,?I think that in this way, I can force the foreground part to learn 0 and the background part to learn 1, so I don't need the second loss mentioned in the paper to avoid trivial solutions。
Did I understand wrong?thank you

@LIUYUANWEI98
Copy link
Owner

Using nn.CELoss(output, 1-label) poses issues. It fails to consider other potential foreground objects within the background region, treating them all as background. Over multiple iterations, this approach disrupts the learning process.

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