ZFTurbo/Weighted-Boxes-Fusion
Set of methods to ensemble boxes from different object detection models, including implementation of "Weighted boxes fusion (WBF)" method.
What it solves
It addresses the problem of ensembling predictions from multiple object detection models. When different models predict multiple overlapping bounding boxes for the same object, this library provides methods to merge those boxes into a single, more accurate prediction.
How it works
The library implements several box-fusion algorithms that take normalized coordinates, confidence scores, and labels from multiple models as input. It supports:
- Weighted Boxes Fusion (WBF): A method that fuses boxes based on their confidence scores and weights assigned to each model.
- Non-maximum Suppression (NMS): A standard method for removing redundant overlapping boxes.
- Soft-NMS: A variation of NMS that decays the confidence of overlapping boxes rather than deleting them.
- Non-maximum Weighted (NMW): An alternative weighted approach to box merging.
Who it’s for
It is designed for computer vision engineers and data scientists who use object detection models and want to improve their final prediction accuracy by combining the outputs of multiple models.
Highlights
- Supports 2D, 3D, 1D (useful for NLP Named Entity Recognition), rotated, and quadrangle bounding boxes.
- Includes implementations of NMS, Soft-NMS, NMW, and WBF.
- Provides benchmarks for Open Images, COCO, and NLP datasets.
- Easy installation via
pip install ensemble-boxes.
Related
- Project
- Project
- Project
- Project
- Project