"git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "851c85e672188402b5cf46e5def686d85bc1cfc9"
Commit cebdd86f authored by The-Indian-Chinna's avatar The-Indian-Chinna
Browse files

Minor: changed documentation for nms functions.

parent ff17727b
...@@ -365,7 +365,10 @@ def sort_drop(objectness, box, classificationsi, k): ...@@ -365,7 +365,10 @@ def sort_drop(objectness, box, classificationsi, k):
def segment_nms(boxes, classes, confidence, k, iou_thresh): def segment_nms(boxes, classes, confidence, k, iou_thresh):
"""This is a quick nms that works on very well for small values of k, this """non max-suppression used to filter predicted boxes that doesn't account
for classes.
This is a quick nms that works on very well for small values of k, this
was developed to operate for tflite models as the tiled NMS is far too slow was developed to operate for tflite models as the tiled NMS is far too slow
and typically is not able to compile with tflite. This NMS does not account and typically is not able to compile with tflite. This NMS does not account
for classes, and only works to quickly filter boxes on phones. for classes, and only works to quickly filter boxes on phones.
...@@ -417,10 +420,7 @@ def nms(boxes, ...@@ -417,10 +420,7 @@ def nms(boxes,
pre_nms_thresh, pre_nms_thresh,
nms_thresh, nms_thresh,
prenms_top_k=500): prenms_top_k=500):
"""This is a quick nms that works on very well for small values of k, this """Tiled non max-suppression used to filter predicted boxes.
was developed to operate for tflite models as the tiled NMS is far too slow
and typically is not able to compile with tflite. This NMS does not account
for classes, and only works to quickly filter boxes on phones.
Args: Args:
boxes: a `Tensor` of shape [batch size, N, 4] that needs to be filtered. boxes: a `Tensor` of shape [batch size, N, 4] that needs to be filtered.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment