We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fa500b commit 40f91e4Copy full SHA for 40f91e4
torchvision/prototype/transforms/functional/_geometry.py
@@ -417,6 +417,7 @@ def pad_bounding_box(
417
418
bounding_box = bounding_box.clone()
419
420
+ # this works without conversion since padding only affects xy coordinates
421
bounding_box[..., 0] += left
422
bounding_box[..., 1] += top
423
if format == features.BoundingBoxFormat.XYXY:
0 commit comments