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
e0eed2cb
Unverified
Commit
e0eed2cb
authored
Feb 24, 2023
by
Philip Meier
Committed by
GitHub
Feb 24, 2023
Browse files
fix BoundingBox.wrap_like (#7327)
parent
56d4078e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/datapoints/_bounding_box.py
torchvision/datapoints/_bounding_box.py
+1
-1
No files found.
torchvision/datapoints/_bounding_box.py
View file @
e0eed2cb
...
@@ -87,7 +87,7 @@ class BoundingBox(Datapoint):
...
@@ -87,7 +87,7 @@ class BoundingBox(Datapoint):
"""
"""
if
isinstance
(
format
,
str
):
if
isinstance
(
format
,
str
):
format
=
BoundingBoxFormat
.
from_str
(
format
.
upper
()
)
format
=
BoundingBoxFormat
[
format
.
upper
()
]
return
cls
.
_wrap
(
return
cls
.
_wrap
(
tensor
,
tensor
,
...
...
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