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
b96d2e03
Commit
b96d2e03
authored
Nov 22, 2019
by
Thang Vu
Committed by
Kai Chen
Nov 22, 2019
Browse files
fix mAP w.r.t. object scales (#1679)
parent
2b89634f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
mmdet/core/evaluation/coco_utils.py
mmdet/core/evaluation/coco_utils.py
+1
-0
No files found.
mmdet/core/evaluation/coco_utils.py
View file @
b96d2e03
...
@@ -188,6 +188,7 @@ def segm2json(dataset, results):
...
@@ -188,6 +188,7 @@ def segm2json(dataset, results):
for
i
in
range
(
bboxes
.
shape
[
0
]):
for
i
in
range
(
bboxes
.
shape
[
0
]):
data
=
dict
()
data
=
dict
()
data
[
'image_id'
]
=
img_id
data
[
'image_id'
]
=
img_id
data
[
'bbox'
]
=
xyxy2xywh
(
bboxes
[
i
])
data
[
'score'
]
=
float
(
mask_score
[
i
])
data
[
'score'
]
=
float
(
mask_score
[
i
])
data
[
'category_id'
]
=
dataset
.
cat_ids
[
label
]
data
[
'category_id'
]
=
dataset
.
cat_ids
[
label
]
if
isinstance
(
segms
[
i
][
'counts'
],
bytes
):
if
isinstance
(
segms
[
i
][
'counts'
],
bytes
):
...
...
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