Skip to content

Commit d0ccdf8

Browse files
committed
follow comments
test=develop
1 parent 0bb3b09 commit d0ccdf8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

paddle/fluid/operators/detection/generate_proposal_labels_op.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,16 +507,16 @@ class GenerateProposalLabelsOpMaker : public framework::OpProtoAndCheckerMaker {
507507

508508
AddComment(R"DOC(
509509
This operator can be, for given the GenerateProposalOp output bounding boxes and groundtruth,
510-
to sample foregroud boxes and background boxes, and compute loss target.
510+
to sample foreground boxes and background boxes, and compute loss target.
511511
512512
RpnRois is the output boxes of RPN and was processed by generate_proposal_op, these boxes
513513
were combined with groundtruth boxes and sampled according to batch_size_per_im and fg_fraction,
514-
If an instance with a groundtruth overlap greater than fg_thresh, then it was considered as a foregroud sample.
514+
If an instance with a groundtruth overlap greater than fg_thresh, then it was considered as a foreground sample.
515515
If an instance with a groundtruth overlap greater than bg_thresh_lo and lower than bg_thresh_hi,
516516
then it was considered as a background sample.
517-
After all foregroud and background boxes are chosen (so called Rois),
517+
After all foreground and background boxes are chosen (so called Rois),
518518
then we apply random sampling to make sure
519-
the number of foregroud boxes is no more than batch_size_per_im * fg_fraction.
519+
the number of foreground boxes is no more than batch_size_per_im * fg_fraction.
520520
521521
For each box in Rois, we assign the classification (class label) and regression targets (box label) to it.
522522
Finally BboxInsideWeights and BboxOutsideWeights are used to specify whether it would contribute to training loss.

python/paddle/fluid/layers/detection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,16 +1414,16 @@ def generate_proposal_labels(rpn_rois,
14141414
"""
14151415
** Generate proposal labels Faster-RCNN **
14161416
This operator can be, for given the GenerateProposalOp output bounding boxes and groundtruth,
1417-
to sample foregroud boxes and background boxes, and compute loss target.
1417+
to sample foreground boxes and background boxes, and compute loss target.
14181418
14191419
RpnRois is the output boxes of RPN and was processed by generate_proposal_op, these boxes
14201420
were combined with groundtruth boxes and sampled according to batch_size_per_im and fg_fraction,
1421-
If an instance with a groundtruth overlap greater than fg_thresh, then it was considered as a foregroud sample.
1421+
If an instance with a groundtruth overlap greater than fg_thresh, then it was considered as a foreground sample.
14221422
If an instance with a groundtruth overlap greater than bg_thresh_lo and lower than bg_thresh_hi,
14231423
then it was considered as a background sample.
1424-
After all foregroud and background boxes are chosen (so called Rois),
1424+
After all foreground and background boxes are chosen (so called Rois),
14251425
then we apply random sampling to make sure
1426-
the number of foregroud boxes is no more than batch_size_per_im * fg_fraction.
1426+
the number of foreground boxes is no more than batch_size_per_im * fg_fraction.
14271427
14281428
For each box in Rois, we assign the classification (class label) and regression targets (box label) to it.
14291429
Finally BboxInsideWeights and BboxOutsideWeights are used to specify whether it would contribute to training loss.

0 commit comments

Comments
 (0)