Closed Borg93 closed 8 months ago
NMS + IoU threshold for ultralytics: https://docs.ultralytics.com/reference/utils/ops/#ultralytics.utils.ops.non_max_suppression NMS vectorized in plain numpy: https://blog.roboflow.com/how-to-code-non-maximum-suppression-nms-in-plain-numpy/
Unclear if this is done on the base data structure or as a postprocess of the ultralytics inferecner.
Test the ultralytics_inferencer https://github.com/Swedish-National-Archives-AI-lab/htrflow_core/blob/8628571195744ff7489562118f0c7837fd1d12f7/src/htrflow/inferencers/ultralytics/ultralytics_inferencer.py#L14
input --> array[images]
output --> Return for now : tuple( bounding box coordinates from (x1, y1, x2, y2) , prediction score )
NMS + IoU threshold for ultralytics: https://docs.ultralytics.com/reference/utils/ops/#ultralytics.utils.ops.non_max_suppression NMS vectorized in plain numpy: https://blog.roboflow.com/how-to-code-non-maximum-suppression-nms-in-plain-numpy/
Unclear if this is done on the base data structure or as a postprocess of the ultralytics inferecner.
Test the ultralytics_inferencer https://github.com/Swedish-National-Archives-AI-lab/htrflow_core/blob/8628571195744ff7489562118f0c7837fd1d12f7/src/htrflow/inferencers/ultralytics/ultralytics_inferencer.py#L14
input --> array[images]
output --> Return for now : tuple( bounding box coordinates from (x1, y1, x2, y2) , prediction score )