Duelscope

Stop guessing which detector is best. Duel them.

Repo
Duelscope banner

About

## The problem it solves

Choosing an object detector usually means running each model separately and stitching the results together yourself. `model.val()` gives you one model's mAP, a speed test is a different script, and nobody reads the failures. **Duelscope does all of it in one command** on your own data and hardware:

```bash

duelscope run --data dataset --models yolov8n.pt yolov8s.pt yolo11n.pt --out report/ ```

You get one self-contained `report.html` (plus `report.md` and `results.json`) with:

  • A sortable leaderboard (mAP50, mAP50-95, small/medium/large, precision/recall/F1)
  • Accuracy-vs-speed with the Pareto frontier, so you can see which models are never worth picking
  • Per-class AP heatmap and precision-recall curves
  • A TIDE-style error breakdown: classification, localization, duplicate, background and missed errors, each with the mAP gain if it were fixed
  • Annotated failure galleries: worst images, "A works where B fails", and images every model fails (often label errors)
  • The exact CPU, GPU, driver and library versions behind every number

**Who it helps**

  • Teams picking a model for an edge device or a deadline. It uses your hardware and your dataset, not a leaderboard from someone else's GPU.
  • Anyone comparing different frameworks, because it takes Ultralytics, ONNX, torchvision or your own Python class behind one interface.
  • Deployment checks: `quant-compare` shows FP32 vs FP16 vs INT8 accuracy, speed and size, and `video-bench` runs models side by side on a clip.

**Why it's safer**

  • Everything runs offline and locally, so no data leaves your machine.
  • Runs are seeded and cached, so results are reproducible.
  • Every error names the file, model or class and suggests a fix. For example, when no model classes match the dataset it says so and shows how to add a mapping.
  • It never invents numbers: every figure in the docs comes from a real run on stated hardware.

## Challenges we ran into

- **The metrics didn't match `model.val()`.** My first cross-check was off by about 0.10 mAP50, and the metric code looked broken. I dumped Ultralytics' own predictions and found the real cause: `val()` pads images differently (a 640×488 image becomes 672×512), so the model sees different input. I fixed the check by feeding my evaluator the exact predictions `val()` produced, which agree to within about 0.01. Then I documented the preprocessing gap instead of hiding it. - **A `.gitignore` rule silently deleted part of the project.** The pattern `report/` also matched `src/duelscope/report/`, so the whole report package never reached GitHub, and `ruff` skipped it too. A clean-venv install test crashed with `ModuleNotFoundError`, which exposed it. I anchored the patterns (`/report/`) and ran lint properly. That also surfaced f-strings that would not parse on Python 3.10. - **INT8 scored 0.0 mAP.** YOLO packs pixel coordinates and 0-1 class scores into one tensor, and 8-bit quantization destroys the scores. I tested three settings and found that keeping the detection head in float recovers it (61.4 vs 70.5 mAP50-95 for FP32). FP16 conversion also failed with the common converter, and ONNX Runtime's own converter worked. - **Making the HTML report self-contained but small.** The first report was 2.5 MB because each failure thumbnail was embedded again in every view. Storing each image once and referencing it by key cut the file to 1.1 MB. - **Honest limits.** My machine's PyTorch is CPU-only, so GPU paths are untested and I say so in the docs. INT8 also turned out slower on this CPU, and the report shows that rather than hiding it.

Screenshots

Duelscope screenshot 1Duelscope screenshot 2Duelscope screenshot 3Duelscope screenshot 4Duelscope screenshot 5

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.