3d-bounding-box-estimation-for-autonomous-driving icon indicating copy to clipboard operation
3d-bounding-box-estimation-for-autonomous-driving copied to clipboard

Loss is Nan, VGG backbone not working

Open ghost opened this issue 4 years ago • 1 comments

I was able to setup and run the training, but if I use VGG as backbone, the training log looked like below:

ETA: 3:15:50 - loss: inf - dimensions_loss: inf - orientation_loss: 1.74 ETA: 2:11:50 - loss: nan - dimensions_loss: nan - orientation_loss: 1.69 TA: 1:39:53 - loss: nan - dimensions_loss: nan - orientation_loss: 1.34

MobileNetV2 works fine. But the performance is not as good as VGG. I really need to use VGG.

ghost avatar Apr 10 '21 00:04 ghost

I encountered the same problem and solved it by change the optimizer from SGD to Adams. For anyone wants to try this, change the Line 43 in train.py. minimizer = optimizer.Adam(learning_rate=0.0001) The dimension loss will still be very high in the first epoch, but it'll become fairly small after that.

KenYu910645 avatar Mar 09 '22 16:03 KenYu910645