@@ -1414,16 +1414,16 @@ def generate_proposal_labels(rpn_rois,
1414
1414
"""
1415
1415
** Generate proposal labels Faster-RCNN **
1416
1416
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.
1418
1418
1419
1419
RpnRois is the output boxes of RPN and was processed by generate_proposal_op, these boxes
1420
1420
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.
1422
1422
If an instance with a groundtruth overlap greater than bg_thresh_lo and lower than bg_thresh_hi,
1423
1423
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),
1425
1425
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.
1427
1427
1428
1428
For each box in Rois, we assign the classification (class label) and regression targets (box label) to it.
1429
1429
Finally BboxInsideWeights and BboxOutsideWeights are used to specify whether it would contribute to training loss.
0 commit comments