automl icon indicating copy to clipboard operation
automl copied to clipboard

ask for more information about loss when training on COCO 2017

Open Alex220284 opened this issue 6 years ago • 7 comments

Hello, I have run the training process on COCO 2017 based on efficientdet-d0, and get the loss curve as following. However, when I use the training model to infer demo pic, nothing is plotted. I notice that the bbox score is too low(about 0.0002). So I wonder something wrong in my training.

截屏2020-03-29下午5 02 46

Alex220284 avatar Mar 29 '20 09:03 Alex220284

I just started the training on GPU with a very small learning rate. With the default LR, it was failing with NaN. I am failing to see the logs directory generated. Will wait for sometime.

Where does your logs directory exists for tensorboard to look for?

guruzen avatar Mar 29 '20 09:03 guruzen

I just started the training on GPU with a very small learning rate. With the default LR, it was failing with NaN. I am failing to see the logs directory generated. Will wait for sometime.

Where does your logs directory exists for tensorboard to look for?

In the model_dir

Alex220284 avatar Mar 29 '20 10:03 Alex220284

Hello, I have run the training process on COCO 2017 based on efficientdet-d0, and get the loss curve as following. However, when I use the training model to infer demo pic, nothing is plotted. I notice that the bbox score is too low(about 0.0002). So I wonder something wrong in my training.

截屏2020-03-29下午5 02 46

Why l2 loss so large?

Alex220284 avatar Mar 29 '20 12:03 Alex220284

@Alex220284, I believe you've managed to solve your training problem and closed the issue - that's great. Would you be kind enough to share your solution?

dkoguciuk avatar Mar 30 '20 10:03 dkoguciuk

@Alex220284, I believe you've managed to solve your training problem and closed the issue - that's great. Would you be kind enough to share your solution?

I have made a mistake on creating the training tfrecord by setting the param "caption_annotations_file" to "captions_train2017.json". In fact, Since I rectify the command to set param "object_annotations_file" to "instances_train2017.json", all things go as expected. Hope this is helpful to you.

Alex220284 avatar Mar 30 '20 10:03 Alex220284

And what are your hyperparameters? My training just won't converge even with quite small learning rate.

debabicz avatar Apr 03 '20 09:04 debabicz

when i run train code, meet a problem as follows: /efficientdet# python main.py --training_file_pattern=tfrecord/train* --model_name=$MODEL --model_dir=model/$MODEL --hparams="use_bfloat16=false" --use_tpu=False

tensorflow.python.training.basic_session_run_hooks.NanLossDuringTrainingError: NaN loss during training. I decrease the learning rate from 0.08---> 0.01, and the same error. Thanks.

elesun2018 avatar Apr 28 '20 15:04 elesun2018