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 the background categories and Instances and Tasks #21

Closed
Never-Walk-Away opened this issue Apr 14, 2022 · 2 comments
Closed

about the background categories and Instances and Tasks #21

Never-Walk-Away opened this issue Apr 14, 2022 · 2 comments

Comments

@Never-Walk-Away
Copy link

Hello, thank you very much for your work. In EQL, the cross entropy loss is used in the calculation of background categories. In eqlv2, how to deal with the background category.
and
How to try to understand this sentence :“one task with positive label and C−1 tasks with negative labels are introduced by a single instance.”
look forward to your reply !

@tztztztztz
Copy link
Owner

Suppose we have C=5 categories.
In softmax loss, the classifier output c+1 channel, the extra 1 is for background. In inference, the background scores will suppress other categories' scores since we have a softmax operation.

In sigmoid loss, the classifier output c channel. Each channel is then activated by a sigmoid function and responsible for one category. So each channel needs a gt_label (0, 1) in training.
Given a proposal of category j, for example j=2, we re-write the gt_label to [0, 0, 1, 0, 0]. That is: one instance introduces one task with positive label and C−1 tasks with negative labels.

For background task, the gt_label is [0, 0, 0, 0, 0]

@Never-Walk-Away
Copy link
Author

I'm very sorry to reply so late. I understand this question. Thank you very much for your answer! thanks again!

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