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

All losses become NaN after about 1 epoch of training #8

Closed
jwookyoo opened this issue Aug 26, 2021 · 6 comments
Closed

All losses become NaN after about 1 epoch of training #8

jwookyoo opened this issue Aug 26, 2021 · 6 comments

Comments

@jwookyoo
Copy link

Hi,

Thank you for sharing this great work!

When I ran the training code, I got NaN for all losses after about 1 epoch of training.
This problem is reproduced whenever I run the training code. (I have tested it three times.)

I followed the same environment setting with anaconda, and also used the same hyper-parameters.
(The only difference is that our PyTorch version is 1.7.1 and yours is 1.7.0, and all other modules are the same as yours.)

Please share your idea about this problem, if you have any. Thanks!

@anthonyhu
Copy link
Collaborator

Hey!

Interesting. Do you run into the same issue if you first load the weights of the encoder (from FIERY Static, the single-timeframe bird's-eye view model).

To do so, add the following lines in baseline.yml

PRETRAINED:
   LOAD_WEIGHTS: True
   PATH: './static_lift_splat_setting.ckpt'

@jwookyoo
Copy link
Author

I loaded the weights first following your suggestion, and the training works now (without NaN)! Thanks a lot!!

@jwookyoo jwookyoo reopened this Aug 31, 2021
@jwookyoo
Copy link
Author

Can I ask one more question? :-) How can I train the FIERY Static weights from scratch?

@anthonyhu
Copy link
Collaborator

Of course. To train the FIERY Static from scratch, point the training script to the following config: https://github.com/wayveai/fiery/blob/master/fiery/configs/literature/static_lss_setting.yml

@jwookyoo
Copy link
Author

jwookyoo commented Sep 1, 2021

I see. Thanks a lot!

@anthonyhu
Copy link
Collaborator

You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants