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
ModelZoo
SOLOv2-pytorch
Commits
f35faf5f
Commit
f35faf5f
authored
Dec 16, 2019
by
goolhanrry
Browse files
Fix loader for images with no proposals
parent
e2c4ea3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/datasets/pipelines/loading.py
mmdet/datasets/pipelines/loading.py
+1
-1
No files found.
mmdet/datasets/pipelines/loading.py
View file @
f35faf5f
...
@@ -145,7 +145,7 @@ class LoadProposals(object):
...
@@ -145,7 +145,7 @@ class LoadProposals(object):
proposals
=
proposals
[:
self
.
num_max_proposals
]
proposals
=
proposals
[:
self
.
num_max_proposals
]
if
len
(
proposals
)
==
0
:
if
len
(
proposals
)
==
0
:
proposals
=
np
.
array
([
0
,
0
,
0
,
0
],
dtype
=
np
.
float32
)
proposals
=
np
.
array
([
[
0
,
0
,
0
,
0
]
]
,
dtype
=
np
.
float32
)
results
[
'proposals'
]
=
proposals
results
[
'proposals'
]
=
proposals
results
[
'bbox_fields'
].
append
(
'proposals'
)
results
[
'bbox_fields'
].
append
(
'proposals'
)
return
results
return
results
...
...
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