Skip to content
Back to skills

Weighted Boxes Fusion

ASecurity

"Route Weighted-Boxes-Fusion tasks for 2D box ensembling, 1D span

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolspythonbashapi

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill weighted-boxes-fusion --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Weighted Boxes Fusion?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Weighted Boxes Fusion
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-weighted-boxes-fusion/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-weighted-boxes-fusion)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: weighted-boxes-fusion
description: "Route Weighted-Boxes-Fusion tasks for 2D box ensembling, 1D span
  fusion, and 3D cuboid fusion with ensemble_boxes."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Weighted Boxes Fusion

Use this repo skill when a task asks you to merge predictions from multiple models with the `ensemble_boxes` package. The package covers three distinct geometry families:

- 2D detector boxes with WBF, NMS, Soft-NMS, and non-maximum weighted suppression.
- 1D spans or token intervals for NLP/NER-style fusion.
- 3D axis-aligned cuboids for volumetric or LiDAR-style detection.

The skill is split into focused sub-skills so future agents can route quickly by geometry and failure mode.

## Install and verify

Install the public package from PyPI:

```bash
python -m pip install ensemble-boxes
```

The bundled smoke helper uses only the package's runtime dependencies; no benchmark data, GUI extras, or detector checkpoints are required.

Then run the root smoke helper:

```bash
python scripts/check_install.py --case all
```

That script imports `ensemble_boxes` and exercises tiny 2D, 1D, and 3D in-memory cases without downloading data or opening GUI windows.

## Route map

### `sub-skills/box-ensembling/`
Use this for 2D normalized boxes in `[x1, y1, x2, y2]` order.

Choose it for tasks like:

- merging YOLO, Faster R-CNN, DetectoRS, or other detector outputs;
- choosing between `weighted_boxes_fusion`, `weighted_boxes_fusion_experimental`, `non_maximum_weighted`, `nms`, `soft_nms`, and `nms_method`;
- tuning `iou_thr`, `skip_box_thr`, `weights`, `conf_type`, `allows_overflow`, `sigma`, or `thresh`;
- explaining clipped coordinates, swapped corners, zero-area boxes, or score inflation.

Read:
- `sub-skills/box-ensembling/references/api-reference.md`
- `sub-skills/box-ensembling/references/workflows.md`
- `sub-skills/box-ensembling/references/troubleshooting.md`
- `sub-skills/box-ensembling/scripts/smoke_2d_ensembling.py`

### `sub-skills/line-segment-fusion/`
Use this for normalized 1D spans in `[x1, x2]` order.

Choose it for tasks like:

- fusing token spans or `predictionstring` intervals from several NLP models;
- mapping string classes to numeric labels before fusion and back afterward;
- tuning `iou_thr`, `skip_box_thr`, `weights`, `conf_type`, or `allows_overflow` for span ensembling.

Read:
- `sub-skills/line-segment-fusion/references/api-reference.md`
- `sub-skills/line-segment-fusion/references/workflows.md`
- `sub-skills/line-segment-fusion/references/troubleshooting.md`
- `sub-skills/line-segment-fusion/scripts/smoke_1d_fusion.py`

### `sub-skills/three-d-box-fusion/`
Use this for normalized 3D cuboids in `[x1, y1, z1, x2, y2, z2]` order.

Choose it for tasks like:

- fusing LiDAR, medical, or other volumetric detector outputs;
- choosing between `conf_type='avg'` and `conf_type='max'`;
- diagnosing axis-order mistakes, zero-volume boxes, or normalization problems.

Read:
- `sub-skills/three-d-box-fusion/references/api-reference.md`
- `sub-skills/three-d-box-fusion/references/workflows.md`
- `sub-skills/three-d-box-fusion/references/troubleshooting.md`
- `sub-skills/three-d-box-fusion/scripts/smoke_3d_fusion.py`

## Shared guidance

- Keep all geometry inputs normalized unless a sub-skill explicitly shows the normalization step.
- Keep one outer list entry per model, even when a model has no predictions.
- If the task asks about benchmark reproduction, read `references/benchmark-notes.md` first. Those scripts need external data and optional packages, so they are not part of the default smoke path.
- If import or installation fails, start with `references/troubleshooting.md` before guessing at geometry bugs.
- If the skill seems stale for the current checkout, read `references/repo-provenance.md` and refresh the skill instead of reusing it blindly.
- For router integration metadata, consult `references/repo-routing-metadata.json`.

## Minimal runtime check

The fastest package check is:

```bash
python -c "from ensemble_boxes import weighted_boxes_fusion; print(weighted_boxes_fusion)"
```

For a broader smoke, use `scripts/check_install.py --case all`.

## What not to expect

- No training loop, model zoo, or detector architecture guidance.
- No built-in GUI visualization requirement.
- No default benchmark downloads.
- No GPU dependency for the package APIs covered here.

Files in this skill

  • SKILL.md4.3 KB
  • references/benchmark-notes.md2.4 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json345 B
  • references/troubleshooting.md2.7 KB
  • scripts/check_install.py4.9 KB
  • sub-skills/box-ensembling/SKILL.md2.1 KB
  • sub-skills/box-ensembling/references/api-reference.md4.1 KB
  • sub-skills/box-ensembling/references/troubleshooting.md2.5 KB
  • sub-skills/box-ensembling/references/workflows.md4.4 KB
  • sub-skills/box-ensembling/scripts/smoke_2d_ensembling.py10.6 KB
  • sub-skills/line-segment-fusion/SKILL.md1.1 KB
  • sub-skills/line-segment-fusion/references/api-reference.md2.7 KB
  • sub-skills/line-segment-fusion/references/troubleshooting.md2.3 KB
  • sub-skills/line-segment-fusion/references/workflows.md3.5 KB
  • sub-skills/line-segment-fusion/scripts/smoke_1d_fusion.py5.3 KB
  • sub-skills/three-d-box-fusion/SKILL.md2 KB
  • sub-skills/three-d-box-fusion/references/api-reference.md2.3 KB
  • sub-skills/three-d-box-fusion/references/troubleshooting.md2.5 KB
  • sub-skills/three-d-box-fusion/references/workflows.md2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.