diff --git a/docs/detection/utils.md b/docs/detection/utils.md index b0f1416f..323b2954 100644 --- a/docs/detection/utils.md +++ b/docs/detection/utils.md @@ -11,6 +11,12 @@ status: new :::supervision.detection.utils.box_iou_batch +
+ +:::supervision.detection.utils.box_iou_batch_with_jaccard + diff --git a/docs/metrics/mean_average_precision.md b/docs/metrics/mean_average_precision.md index 817591a1..e2437c85 100644 --- a/docs/metrics/mean_average_precision.md +++ b/docs/metrics/mean_average_precision.md @@ -16,3 +16,9 @@ status: new :::supervision.metrics.mean_average_precision.MeanAveragePrecisionResult + + + +:::supervision.dataset.formats.coco.get_coco_class_index_mapping \ No newline at end of file diff --git a/supervision/__init__.py b/supervision/__init__.py index a377c081..be7085df 100644 --- a/supervision/__init__.py +++ b/supervision/__init__.py @@ -1,7 +1,4 @@ import importlib.metadata as importlib_metadata -from typing import List - -import numpy as np try: # This will read version from pyproject.toml diff --git a/supervision/utils/image.py b/supervision/utils/image.py index 0bd2dbaa..37025656 100644 --- a/supervision/utils/image.py +++ b/supervision/utils/image.py @@ -785,4 +785,4 @@ def _merge_tiles_elements( def _generate_color_image( shape: Tuple[int, int], color: Tuple[int, int, int] ) -> np.ndarray: - return np.ones(shape[::-1] + (3,), dtype=np.uint8) * color + return np.ones((*shape[::-1], 3), dtype=np.uint8) * color