- Added `sv.mask_to_roi` as an explicit migration path for exclusive mask bounds - Fixed COCO, CreateML, and Pascal VOC export validation to reject ambiguous or colliding dataset paths before writing - Fixed in-memory `DetectionDataset` split and merge behavior - Fixed `supervision` imports to avoid loading ByteTrack until it is used - Fixed detection conversion helpers to support coordinate-convention migration while preserving legacy inclusive defaults - Fixed Azure tag mapping, anchor rounding, and line-zone smoothing to avoid incorrect or ghost detections - Fixed video processing shutdown handling for timeout and full-queue cases - Improved downloader, validator, documentation, and regression coverage for the shipped dataset, detection, annotator, image, and video behavior --------- Co-authored-by: Codex <codex@openai.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
17 lines
447 B
Python
17 lines
447 B
Python
"""Smoke tests for the validators module surface."""
|
|
|
|
import warnings
|
|
|
|
import numpy as np
|
|
|
|
import supervision.validators as validators
|
|
|
|
|
|
def test_private_validate_xyxy_does_not_warn() -> None:
|
|
"""The private validator path stays quiet for a valid input."""
|
|
with warnings.catch_warnings(record=True) as captured:
|
|
warnings.simplefilter("always")
|
|
validators._validate_xyxy(np.array([[0, 0, 1, 1]]))
|
|
|
|
assert captured == []
|