Skip to content

Commit 40f91e4

Browse files
authored
Update _geometry.py
1 parent 9fa500b commit 40f91e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchvision/prototype/transforms/functional/_geometry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def pad_bounding_box(
417417

418418
bounding_box = bounding_box.clone()
419419

420+
# this works without conversion since padding only affects xy coordinates
420421
bounding_box[..., 0] += left
421422
bounding_box[..., 1] += top
422423
if format == features.BoundingBoxFormat.XYXY:

0 commit comments

Comments
 (0)