Using ‘Adam’ to train, encountering error.
lilichu opened this issue · comments
hi! I train keypoint using mask rcnn.
If I use 'Adam' to train, I encounter the issue such as:
/home1/chuli/mask-rcnn.pytorch/lib/utils/boxes.py:226: RuntimeWarning: invalid value encountered in log
targets_dh = wh * np.log(gt_heights / ex_heights)
/home1/chuli/mask-rcnn.pytorch/lib/utils/boxes.py:225: RuntimeWarning: invalid value encountered in log
targets_dw = ww * np.log(gt_widths / ex_widths)
/home1/chuli/mask-rcnn.pytorch/lib/utils/boxes.py:66: RuntimeWarning: Negative areas founds: 187
warnings.warn("Negative areas founds: %d" % neg_area_idx.size, RuntimeWarning)
but if I use 'SGD', it is OK.
I only replace 'SGD' with 'Adam', nothing else is changed.