Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
d5bd8b72
Unverified
Commit
d5bd8b72
authored
Sep 01, 2022
by
Philip Meier
Committed by
GitHub
Sep 01, 2022
Browse files
fix bounding box padding (#6528)
parent
bd70a780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/prototype/features/_bounding_box.py
torchvision/prototype/features/_bounding_box.py
+1
-1
No files found.
torchvision/prototype/features/_bounding_box.py
View file @
d5bd8b72
...
...
@@ -125,7 +125,7 @@ class BoundingBox(_Feature):
output
=
self
.
_F
.
pad_bounding_box
(
self
,
padding
,
format
=
self
.
format
,
padding_mode
=
padding_mode
)
# Update output image size:
left
,
top
,
right
,
bottom
=
self
.
_F
.
_geometry
.
_parse_pad_padding
(
padding
)
left
,
right
,
top
,
bottom
=
self
.
_F
.
_geometry
.
_parse_pad_padding
(
padding
)
height
,
width
=
self
.
image_size
height
+=
top
+
bottom
width
+=
left
+
right
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment