Tao mask_rcnn training exits with NaN loss

Make sure

  • the id under categories in the annotation file should start from 1.
  • In annotations dict, the category_id should start from 1.