MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / simple_merge

Function simple_merge

flow-python/examples/application/utils.py:142–146  ·  view source on GitHub ↗
(rect1, rect2)

Source from the content-addressed store, hash-verified

140
141
142def simple_merge(rect1, rect2):
143 if rect2[4] > rect1[4]:
144 return rect2
145 else:
146 return rect1
147
148
149def raw_nms(boxes, scores, iou_threshold=0.3):

Callers 1

nmsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected