Skip to content

Commit

Permalink
Fix the input shape of anchors in ProposalLayer (matterport#961)
Browse files Browse the repository at this point in the history
Fix the input shape of anchors in ProposalLayer and use "num_anchors" to replace "anchors" to avoid confusing
  • Loading branch information
keineahnung2345 authored and waleedka committed Sep 28, 2018
1 parent d16c463 commit 1aca439
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mrcnn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ class ProposalLayer(KE.Layer):
box refinement deltas to anchors.
Inputs:
rpn_probs: [batch, anchors, (bg prob, fg prob)]
rpn_bbox: [batch, anchors, (dy, dx, log(dh), log(dw))]
anchors: [batch, (y1, x1, y2, x2)] anchors in normalized coordinates
rpn_probs: [batch, num_anchors, (bg prob, fg prob)]
rpn_bbox: [batch, num_anchors, (dy, dx, log(dh), log(dw))]
anchors: [batch, num_anchors, (y1, x1, y2, x2)] anchors in normalized coordinates
Returns:
Proposals in normalized coordinates [batch, rois, (y1, x1, y2, x2)]
Expand Down

0 comments on commit 1aca439

Please sign in to comment.