Skip to content

feat: Add mask-aware dataset grids for instance segmentation label validation#1014

Draft
pirnerjonas wants to merge 2 commits intoroboflow:developfrom
pirnerjonas:codex/mask-dataset-grids
Draft

feat: Add mask-aware dataset grids for instance segmentation label validation#1014
pirnerjonas wants to merge 2 commits intoroboflow:developfrom
pirnerjonas:codex/mask-dataset-grids

Conversation

@pirnerjonas
Copy link
Copy Markdown
Contributor

@pirnerjonas pirnerjonas commented Apr 30, 2026

Summary

  • render instance masks in saved dataset grids when targets include masks
  • pass masks through supervision.Detections and draw them before boxes and labels
  • add a regression test that verifies segmentation masks are forwarded to the mask annotator
  • use Matplotlib's non-interactive Agg backend for dataset grid file rendering so CI and headless environments do not require Tk

Refs #1013

Validation

  • uv run --no-sync pytest tests/datasets/test_save_grids.py -q
  • MPLBACKEND=TkAgg uv run --no-sync pytest tests/datasets/test_save_grids.py::test_save_grid_passes_masks_to_supervision -q
  • uvx pre-commit run --all-files
  • GitHub PR checks passed on f5e5679, including Testing (windows-latest, 3.10)

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

❌ Patch coverage is 72.97297% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 77%. Comparing base (7f2490d) to head (f5e5679).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #1014    +/-   ##
========================================
- Coverage       80%     77%    -3%     
========================================
  Files          100     101     +1     
  Lines         8447    8549   +102     
========================================
- Hits          6774    6569   -205     
- Misses        1673    1980   +307     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Borda Borda changed the title [codex] Add mask-aware dataset grids for instance segmentation label validation feat: Add mask-aware dataset grids for instance segmentation label validation Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant