Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Using ‘Adam’ to train, encountering error. #200

Open
lilichu opened this issue Feb 24, 2019 · 0 comments
Open

Using ‘Adam’ to train, encountering error. #200

lilichu opened this issue Feb 24, 2019 · 0 comments

Comments

@lilichu
Copy link

lilichu commented Feb 24, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant