Loss NaN
Thanks you source code ! I use custom dataset with 5 class + model name efficientdet-d0 , I got an error NaN when i set --ckpt = "efficientdet-d0" or set --backbone_ckpt="efficientnet-d0" for training . I downloaded ckpt from source code . When i not use --ckpt =None or --backbone_ckpt=None -> NaN doesn't happen Where is the problem? Thanks !
Please post the full command you ran and the platform your training on
- Command python main.py --training_file_pattern=tfrecord/.tfrecord --model_dir=./tmp/ --model_name=efficientdet-d0 --backbone_ckpt=efficientnet-b0 --hparams="use_bfloat16=false" --use_tpu=False python main.py --training_file_pattern=tfrecord/.tfrecord --model_dir=./tmp/ --model_name=efficientdet-d0 --ckpt=efficientdet-d0 --hparams="use_bfloat16=false,var_exclude_expr = r'./class-predict/.'" --use_tpu=False
- I use tensorflow-gpu 1.15 , card RTX2080ti
- Command python main.py --training_file_pattern=tfrecord/.tfrecord --model_dir=./tmp/ --model_name=efficientdet-d0 --backbone_ckpt=efficientnet-b0 --hparams="use_bfloat16=false" --use_tpu=False python main.py --training_file_pattern=tfrecord/.tfrecord --model_dir=./tmp/ --model_name=efficientdet-d0 --ckpt=efficientdet-d0 --hparams="use_bfloat16=false,var_exclude_expr = r'./class-predict/.'" --use_tpu=False
- I use tensorflow-gpu 1.15 , card RTX2080ti
try changing line number 51 and 52 in hparams_config.py to h.learning_rate = 0.001 h.lr_warmup_init = 0.0001
Thanks ! i will close issues
I met the same issue about NaN loss. I decrease the learning rate from 0.08---> 0.01, and the same error. Thanks.