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 Constants: _coord, _obj and _noobj #17

Closed
glenn-jocher opened this issue Sep 23, 2018 · 1 comment
Closed

Loss Constants: _coord, _obj and _noobj #17

glenn-jocher opened this issue Sep 23, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@glenn-jocher
Copy link
Member

The correct YOLO v3 loss constants are:

lambda_coord = 1.0
lambda_obj = 1.0
lambda_noobj = 1.0

rather than the below constants, which derive from the original yolov1.cfg file:
https://github.com/pjreddie/darknet/blob/61c9d02ec461e30d55762ec7669d6a1d3c356fb2/cfg/yolov1.cfg#L257-L260

lambda_coord = 5.0
lambda_obj = 1.0
lambda_noobj = 0.5

The latest yolov3 constants appear to be hard coded into the parser.c rather than in yolov3.cfg Credit to @ydixon who originally noticed this discrepancy in issue #12.
https://github.com/pjreddie/darknet/blob/680d3bde1924c8ee2d1c1dea54d3e56a05ca9a26/src/parser.c#L376-L381

@glenn-jocher glenn-jocher mentioned this issue Sep 23, 2018
@glenn-jocher glenn-jocher self-assigned this Sep 23, 2018
@glenn-jocher glenn-jocher added the bug Something isn't working label Sep 23, 2018
@glenn-jocher
Copy link
Member Author

Corrected in commit cf9b4cf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant