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
MMCV
Commits
772069f2
"vscode:/vscode.git/clone" did not exist on "ad3ca3e74eaef86b5e061b27706849601db33430"
Commit
772069f2
authored
May 12, 2022
by
gongtao.vendor
Committed by
zhouzaida
Jul 19, 2022
Browse files
Update loading.py
parent
96fff55c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmcv/transforms/loading.py
mmcv/transforms/loading.py
+2
-1
No files found.
mmcv/transforms/loading.py
View file @
772069f2
...
...
@@ -195,7 +195,8 @@ class LoadAnnotations(BaseTransform):
gt_bboxes
=
[]
for
instance
in
results
[
'instances'
]:
gt_bboxes
.
append
(
instance
[
'bbox'
])
results
[
'gt_bboxes'
]
=
np
.
array
(
gt_bboxes
,
dtype
=
np
.
float32
)
results
[
'gt_bboxes'
]
=
np
.
array
(
gt_bboxes
,
dtype
=
np
.
float32
).
reshape
(
-
1
,
4
)
def
_load_labels
(
self
,
results
:
dict
)
->
None
:
"""Private function to load label annotations.
...
...
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