FloatingPointError: Predicted boxes or scores contain Inf/Nan. Training has diverged.
深度学习图像目标检测时。 使用pytorch的detectron2平台调试faster-rcnn代码训练的时候,迭代到一段时间后就报错。 FloatingPointError: Predicted boxes or scores contain Inf/Nan. Training has diverged. 当训练bacthsize为1或者2时,报这个错误;把batchsize改大为4时,提示显存不足。