Skip to content
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
@lilichu

Description

@lilichu

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions