mkdocs update + pre-commit fix

This commit is contained in:
SkalskiP 2025-07-07 15:30:05 +02:00
parent b867968a10
commit fcb47f7226
4 changed files with 13 additions and 4 deletions

View File

@ -11,6 +11,12 @@ status: new
:::supervision.detection.utils.box_iou_batch
<div class="md-typeset">
<h2><a href="#supervision.detection.utils.box_iou_batch_with_jaccard">box_iou_batch_with_jaccard</a></h2>
</div>
:::supervision.detection.utils.box_iou_batch_with_jaccard
<div class="md-typeset">
<h2><a href="#supervision.detection.utils.mask_iou_batch">mask_iou_batch</a></h2>
</div>

View File

@ -16,3 +16,9 @@ status: new
</div>
:::supervision.metrics.mean_average_precision.MeanAveragePrecisionResult
<div class="md-typeset">
<h2><a href="#supervision.dataset.formats.coco.get_coco_class_index_mapping">get_coco_class_index_mapping</a></h2>
</div>
:::supervision.dataset.formats.coco.get_coco_class_index_mapping

View File

@ -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

View File

@ -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