DynamicRCNN icon indicating copy to clipboard operation
DynamicRCNN copied to clipboard

loss is nan

Open thunderbird0902 opened this issue 4 years ago • 1 comments

我训练自己的数据,刚训练两分钟损失值就变成nan,请问这是什么原因导致的?

thunderbird0902 avatar Jul 15 '20 12:07 thunderbird0902

Sorry for the late reply, I am kind of busy recently.

There are a lot of possibilities for this case and I cannot find the reason just by loss is nan. Here are some common reasons:

  • Noisy data
    • Images containing no objects?
    • Noisy annotations?
  • Unreasonable settings
    • Data settings. Categories? Mappings?
    • Hyperparameters. Anchor settings? Mini-batch size? Dynamic R-CNN hyperparameters?
  • etc.

Maybe you can provide more detailed information (everything might be helpful). For example:

  • If you use the original Faster R-CNN with your data, is your loss normal?
  • Can you make sure that the settings are correct?
  • What kind of data you are using? Does it have some special properties which require some considerate hyperparameters?

hkzhang95 avatar Jul 23 '20 02:07 hkzhang95