"examples/cpp/llama/llama_triton_example.cc" did not exist on "720fc533da804ac3f46ee938864403e51fcd9fa7"
Unverified Commit 0367c219 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Typo: bouding -> bounding (#8386)

parent ba94133f
......@@ -93,7 +93,7 @@ plot([dataset[0], dataset[1]])
# ----------
#
# Let's now define our pre-processing transforms. All the transforms know how
# to handle images, bouding boxes and masks when relevant.
# to handle images, bounding boxes and masks when relevant.
#
# Transforms are typically passed as the ``transforms`` parameter of the
# dataset so that they can leverage multi-processing from the
......
......@@ -5930,7 +5930,7 @@ class TestSanitizeBoundingBoxes:
with pytest.raises(ValueError, match="canvas_size must be None when bounding_boxes is a tv_tensors"):
F.sanitize_bounding_boxes(good_bbox, format="XYXY", canvas_size=None)
with pytest.raises(ValueError, match="bouding_boxes must be a tv_tensors.BoundingBoxes instance or a"):
with pytest.raises(ValueError, match="bounding_boxes must be a tv_tensors.BoundingBoxes instance or a"):
F.sanitize_bounding_boxes(good_bbox.tolist())
......
......@@ -328,12 +328,12 @@ def sanitize_bounding_boxes(
bounding_boxes = bounding_boxes[valid]
else:
if not isinstance(bounding_boxes, tv_tensors.BoundingBoxes):
raise ValueError("bouding_boxes must be a tv_tensors.BoundingBoxes instance or a pure tensor.")
raise ValueError("bounding_boxes must be a tv_tensors.BoundingBoxes instance or a pure tensor.")
if format is not None or canvas_size is not None:
raise ValueError(
"format and canvas_size must be None when bounding_boxes is a tv_tensors.BoundingBoxes instance. "
f"Got format={format} and canvas_size={canvas_size}. "
"Leave those to None or pass bouding_boxes as a pure tensor."
"Leave those to None or pass bounding_boxes as a pure tensor."
)
valid = _get_sanitize_bounding_boxes_mask(
bounding_boxes, format=bounding_boxes.format, canvas_size=bounding_boxes.canvas_size, min_size=min_size
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment