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

get NAN loss #9

Open
renqianluo opened this issue Mar 15, 2021 · 1 comment
Open

get NAN loss #9

renqianluo opened this issue Mar 15, 2021 · 1 comment

Comments

@renqianluo
Copy link

Hi,
I use the train_imagenet.py to train the searched architecture following the guidance in README.
I train the code on 4 GPUs. All the hyperparameters follow the guidance in README with --num-gpu=4
But I got 'Loss NAN' at the very beginning of the training.

@vinh-cao
Copy link

vinh-cao commented Sep 21, 2022

same here. But I used the evaluator script to test a subnet of MobileNet V3

cifar10 Train Epoch #1: 100%|█| 391/391 [01:01<00:00, 6.38it/s, loss=nan, top1=
Validate Epoch #1 : 100%|█| 50/50 [00:07<00:00, 6.72it/s, loss=nan, top1=10, to

Edit:
looks like the loss is far too high at the beginning and learn rate is set to 0.01:
cifar10 Train Epoch #1: 0%| | 1/391 [04:22<28:26:08, 262.48s/it, loss=2.71e+8

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