Skip to content

Commit f0177a1

Browse files
committed
refine doc, test=develop
1 parent 21e0d35 commit f0177a1

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

paddle/fluid/API.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ paddle.fluid.layers.polygon_box_transform (ArgSpec(args=['input', 'name'], varar
328328
paddle.fluid.layers.yolov3_loss (ArgSpec(args=['x', 'gtbox', 'gtlabel', 'anchors', 'anchor_mask', 'class_num', 'ignore_thresh', 'downsample_ratio', 'name'], varargs=None, keywords=None, defaults=(None,)), ('document', '991e934c3e09abf0edec7c9c978b4691'))
329329
paddle.fluid.layers.box_clip (ArgSpec(args=['input', 'im_info', 'name'], varargs=None, keywords=None, defaults=(None,)), ('document', '397e9e02b451d99c56e20f268fa03f2e'))
330330
paddle.fluid.layers.multiclass_nms (ArgSpec(args=['bboxes', 'scores', 'score_threshold', 'nms_top_k', 'keep_top_k', 'nms_threshold', 'normalized', 'nms_eta', 'background_label', 'name'], varargs=None, keywords=None, defaults=(0.3, True, 1.0, 0, None)), ('document', 'ca7d1107b6c5d2d6d8221039a220fde0'))
331-
paddle.fluid.layers.distribute_fpn_proposals (ArgSpec(args=['fpn_rois', 'min_level', 'max_level', 'refer_level', 'refer_scale', 'name'], varargs=None, keywords=None, defaults=(None,)), ('document', 'fa7008889611447edd1bac71dd42b558'))
331+
paddle.fluid.layers.distribute_fpn_proposals (ArgSpec(args=['fpn_rois', 'min_level', 'max_level', 'refer_level', 'refer_scale', 'name'], varargs=None, keywords=None, defaults=(None,)), ('document', 'fdffe52577f7e74c090b030867fefc11'))
332332
paddle.fluid.layers.accuracy (ArgSpec(args=['input', 'label', 'k', 'correct', 'total'], varargs=None, keywords=None, defaults=(1, None, None)), ('document', '9808534c12c5e739a10f73ebb0b4eafd'))
333333
paddle.fluid.layers.auc (ArgSpec(args=['input', 'label', 'curve', 'num_thresholds', 'topk', 'slide_steps'], varargs=None, keywords=None, defaults=('ROC', 4095, 1, 1)), ('document', 'e0e95334fce92d16c2d9db6e7caffc47'))
334334
paddle.fluid.layers.exponential_decay (ArgSpec(args=['learning_rate', 'decay_steps', 'decay_rate', 'staircase'], varargs=None, keywords=None, defaults=(False,)), ('document', '98a5050bee8522fcea81aa795adaba51'))

python/paddle/fluid/layers/detection.py

+11-9
Original file line numberDiff line numberDiff line change
@@ -2231,21 +2231,23 @@ def distribute_fpn_proposals(fpn_rois,
22312231
refer_scale,
22322232
name=None):
22332233
"""
2234-
Distribute all proposals into different fpn level, with respect to scale
2235-
of the proposals, the referring scale and the referring level. Besides, to
2236-
restore the order of proposals, we return an array which indicates the
2237-
original index of rois in current proposals. To compute fpn level for each
2238-
roi, the formula is given as follows:
2234+
In Feature Pyramid Networks (FPN) models, it is needed to distribute all
2235+
proposals into different FPN level, with respect to scale of the proposals,
2236+
the referring scale and the referring level. Besides, to restore the order
2237+
of proposals, we return an array which indicates the original index of rois
2238+
in current proposals. To compute FPN level for each roi, the formula is
2239+
given as follows:
22392240
22402241
.. math::
2241-
roi\_scale = \sqrt{BBoxArea(fpn\_roi)}
22422242
2243-
level = floor(\log(\\frac{roi\_scale}{refer\_scale}) + refer\_level)
2243+
roi\_scale &= \sqrt{BBoxArea(fpn\_roi)}
22442244
2245-
where BBoxArea is the area of each roi
2245+
level = floor(&\log(\\frac{roi\_scale}{refer\_scale}) + refer\_level)
2246+
2247+
where BBoxArea is a function to compute the area of each roi.
22462248
22472249
Args:
2248-
fpn_rois(variable): The input fpn_rois, the last dimension is 4.
2250+
fpn_rois(variable): The input fpn_rois, the second dimension is 4.
22492251
min_level(int): The lowest level of FPN layer where the proposals come
22502252
from.
22512253
max_level(int): The highest level of FPN layer where the proposals

0 commit comments

Comments
 (0)