Now I am trying to train object detection - YOLOv1 using this code. At the beginning I was using momentum and weight_decay but the training loss after couples of epochs becomes NaN. As far as I know it's because of gradient exploding, so I have searched some ways to get rid of this NaN then I ignored momentum and weight decay. As a result I did not get any NaN, however my model could not converge as I expected. When I calculated mAP it was only 0.29. I am using VOC 2007 and 2012 data for training and as a test set VOC 2007 test.
So my questions are followings:
- How can I get rid of
NaNwhile training? - Where can I get best training configurations?
- Is gradient exploding is normal in Object Detection task?
- Is it normal in YOLOv1 getting 1.1Gb weights after training?
Would appreciate any suggestions here.