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

zero Reg loss and bad results #543

Open
mingcv opened this issue Nov 9, 2020 · 3 comments
Open

zero Reg loss and bad results #543

mingcv opened this issue Nov 9, 2020 · 3 comments

Comments

@mingcv
Copy link

mingcv commented Nov 9, 2020

I'm training from scratch of EfficientDet-d0 on a dataset which contains 600 images to recognize insulators, which is the only one class. However, when I was both training and evaluating, the Reg loss keeps zero, and the Cls loss first declines then increases and then declines rapidly. Cannot figure out what's happening, is it for lack of data and overfitting happens? But will it bring zero Reg loss? After all, I'm using the minimum version of EfficientDet. Any help, plz!
image
image

@zylo117
Copy link
Owner

zylo117 commented Nov 11, 2020

reg loss being so low means the anchors config don't fit your targets.
You can refer to Q3 here. #386

@myarchivedaccount
Copy link

I realize this problem due to unsuitable anchor and IOU. try modifying this line
positive_indices = torch.ge(IoU_max, 0.4) --> positive_indices = torch.ge(IoU_max, 0.1)
Thanks

@zylo117
Copy link
Owner

zylo117 commented Aug 23, 2021

I realize this problem due to unsuitable anchor and IOU. try modifying this line
positive_indices = torch.ge(IoU_max, 0.4) --> positive_indices = torch.ge(IoU_max, 0.1)
Thanks

I don't think that's a proper solution, you should instead change anchor ratio to suit your datasets. @buidung2004

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