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

loss_cls #22

Closed
x-x110 opened this issue May 26, 2021 · 8 comments
Closed

loss_cls #22

x-x110 opened this issue May 26, 2021 · 8 comments

Comments

@x-x110
Copy link

x-x110 commented May 26, 2021

during training, you get the index of box which iou more than 0.7 and less 0.10. however, using pred_class_logits[valid_idxs] to compute loss,to set more than 0.7 sanple are negative .why?
i think that boxes greater than 0.7 should be classified accurately. So, may be set these box to get training?

@chensnathan
Copy link
Owner

Sorry for the late reply.

You can refer to this answer for details.

@x-x110
Copy link
Author

x-x110 commented Jun 3, 2021

thank you for your reply and i meet a new question. During training, compared with ~0.5 of baseline, my total loss get 0.43 , 0.18 for box and 0.25 for cls, but the map get 35.9 at iter 30000. i am provided that overfit not happen. Since, the map is improve gradually at val.
this scene has happens more than once.

@chensnathan
Copy link
Owner

What did you modify in this round?

@x-x110
Copy link
Author

x-x110 commented Jun 3, 2021

sample matching method. box loss is mean and cls loss is loss_sum/num(positive)

@x-x110
Copy link
Author

x-x110 commented Jun 3, 2021

so the loss reflect the average loss,it doesn't matter how you match box.

@chensnathan
Copy link
Owner

This is your own experiment. You may need to debug and analyze it by yourself.

@x-x110
Copy link
Author

x-x110 commented Jun 3, 2021

OK, thanks for you reply

1 similar comment
@x-x110
Copy link
Author

x-x110 commented Jun 3, 2021

OK, thanks for you reply

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