Skip to content

Commit 0367c21

Browse files
authored
Typo: bouding -> bounding (#8386)
1 parent ba94133 commit 0367c21

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gallery/transforms/plot_transforms_e2e.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
# ----------
9494
#
9595
# Let's now define our pre-processing transforms. All the transforms know how
96-
# to handle images, bouding boxes and masks when relevant.
96+
# to handle images, bounding boxes and masks when relevant.
9797
#
9898
# Transforms are typically passed as the ``transforms`` parameter of the
9999
# dataset so that they can leverage multi-processing from the

test/test_transforms_v2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5930,7 +5930,7 @@ def test_errors_functional(self):
59305930
with pytest.raises(ValueError, match="canvas_size must be None when bounding_boxes is a tv_tensors"):
59315931
F.sanitize_bounding_boxes(good_bbox, format="XYXY", canvas_size=None)
59325932

5933-
with pytest.raises(ValueError, match="bouding_boxes must be a tv_tensors.BoundingBoxes instance or a"):
5933+
with pytest.raises(ValueError, match="bounding_boxes must be a tv_tensors.BoundingBoxes instance or a"):
59345934
F.sanitize_bounding_boxes(good_bbox.tolist())
59355935

59365936

torchvision/transforms/v2/functional/_misc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ def sanitize_bounding_boxes(
328328
bounding_boxes = bounding_boxes[valid]
329329
else:
330330
if not isinstance(bounding_boxes, tv_tensors.BoundingBoxes):
331-
raise ValueError("bouding_boxes must be a tv_tensors.BoundingBoxes instance or a pure tensor.")
331+
raise ValueError("bounding_boxes must be a tv_tensors.BoundingBoxes instance or a pure tensor.")
332332
if format is not None or canvas_size is not None:
333333
raise ValueError(
334334
"format and canvas_size must be None when bounding_boxes is a tv_tensors.BoundingBoxes instance. "
335335
f"Got format={format} and canvas_size={canvas_size}. "
336-
"Leave those to None or pass bouding_boxes as a pure tensor."
336+
"Leave those to None or pass bounding_boxes as a pure tensor."
337337
)
338338
valid = _get_sanitize_bounding_boxes_mask(
339339
bounding_boxes, format=bounding_boxes.format, canvas_size=bounding_boxes.canvas_size, min_size=min_size

0 commit comments

Comments
 (0)