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
c73411a4
".github/vscode:/vscode.git/clone" did not exist on "2788d41a76c193d4de7055dc5ef38a97f25c38b5"
Unverified
Commit
c73411a4
authored
Feb 13, 2023
by
Philip Meier
Committed by
GitHub
Feb 13, 2023
Browse files
fix COCO box format in dataset wrapper (#7225)
parent
9b233d41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/prototype/datapoints/_dataset_wrapper.py
torchvision/prototype/datapoints/_dataset_wrapper.py
+1
-1
No files found.
torchvision/prototype/datapoints/_dataset_wrapper.py
View file @
c73411a4
...
@@ -209,7 +209,7 @@ def coco_dectection_wrapper_factory(dataset):
...
@@ -209,7 +209,7 @@ def coco_dectection_wrapper_factory(dataset):
spatial_size
=
tuple
(
F
.
get_spatial_size
(
image
))
spatial_size
=
tuple
(
F
.
get_spatial_size
(
image
))
batched_target
[
"boxes"
]
=
datapoints
.
BoundingBox
(
batched_target
[
"boxes"
]
=
datapoints
.
BoundingBox
(
batched_target
[
"bbox"
],
batched_target
[
"bbox"
],
format
=
datapoints
.
BoundingBoxFormat
.
XY
XY
,
format
=
datapoints
.
BoundingBoxFormat
.
XY
WH
,
spatial_size
=
spatial_size
,
spatial_size
=
spatial_size
,
)
)
batched_target
[
"masks"
]
=
datapoints
.
Mask
(
batched_target
[
"masks"
]
=
datapoints
.
Mask
(
...
...
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