This repository was archived by the owner on Jan 26, 2022. It is now read-only.
This repository was archived by the owner on Jan 26, 2022. It is now read-only.
Using ‘Adam’ to train, encountering error. #200
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels