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: nan #4

Open
cisan86 opened this issue Jul 27, 2022 · 3 comments
Open

Loss: nan #4

cisan86 opened this issue Jul 27, 2022 · 3 comments

Comments

@cisan86
Copy link

cisan86 commented Jul 27, 2022

hello, I run your code with the default lr=0.02 but get Loss:nan , my batchsize=8, env macos10.15, python3.6,

@ivanwhaf
Copy link
Owner

maybe your learning rate is too big, better lower than 0.01

@cisan86
Copy link
Author

cisan86 commented Jul 28, 2022

thx, i try 0.01 and get the right loss. but the output file -- pth file is more than 900mb, is that anything wrong?

@ivanwhaf
Copy link
Owner

probably nothing wrong, see models/yolov1.py for more model-structure details

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