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

My Regression loss always 0 #458

Open
shekarneo opened this issue Jul 28, 2020 · 7 comments
Open

My Regression loss always 0 #458

shekarneo opened this issue Jul 28, 2020 · 7 comments

Comments

@shekarneo
Copy link

shekarneo commented Jul 28, 2020

when i try training on custom data from scratch/head only regression loss always 0.
using debug got terrible results and while inference did not got any bounding boxes

@HaoyangRong
Copy link

HaoyangRong commented Jul 29, 2020

Having the same issue here. But there's regression loss when training with the toy data 'shape'.

@zylo117
Copy link
Owner

zylo117 commented Jul 29, 2020

Refer to FAQ Q3.
#386

@shekarneo
Copy link
Author

Why category id matters for regression loss.

@mytk2012
Copy link

Why category id matters for regression loss.

This is for the COCO data format.

@HaoyangRong
Copy link

HaoyangRong commented Jul 29, 2020

Ok, I figured it out. In the annotation json files, the 'image_id's in field 'annotations' is a mapping to the 'id's in field 'images'. And it seems both 'image_id'(under 'annotations') and 'id'(under 'images') should be ints.
If we can use 'image_id' instead of 'id' in field 'images', it should be less confusing. It's kind of strange that even those two keys don't match, the algorithm still runs. I had hash strings and ints respectively. So there's no way to find any matching image file for the annotations. Is it possible to add some format checks?

@shekarneo
Copy link
Author

did you got better accuracy, i am getting loss 300-400 it is not decreasing even for more than 100 epochs

@a554142589
Copy link

did you got better accuracy, i am getting loss 300-400 it is not decreasing even for more than 100 epochs

hello, Had you fixed the error about the "zero-reg" loss?

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

5 participants