Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
maskrcnn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
人工智能
maskrcnn
Commits
2b33e56d
Commit
2b33e56d
authored
Dec 14, 2018
by
wat3rBro
Committed by
Francisco Massa
Dec 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use empty COCO to avoid loading empty result via coco api (#270)
parent
55d3ab44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
coco_eval.py
...rcnn_benchmark/data/datasets/evaluation/coco/coco_eval.py
+3
-1
No files found.
maskrcnn_benchmark/data/datasets/evaluation/coco/coco_eval.py
View file @
2b33e56d
...
@@ -277,9 +277,11 @@ def evaluate_predictions_on_coco(
...
@@ -277,9 +277,11 @@ def evaluate_predictions_on_coco(
with
open
(
json_result_file
,
"w"
)
as
f
:
with
open
(
json_result_file
,
"w"
)
as
f
:
json
.
dump
(
coco_results
,
f
)
json
.
dump
(
coco_results
,
f
)
from
pycocotools.coco
import
COCO
from
pycocotools.cocoeval
import
COCOeval
from
pycocotools.cocoeval
import
COCOeval
coco_dt
=
coco_gt
.
loadRes
(
str
(
json_result_file
))
coco_dt
=
coco_gt
.
loadRes
(
str
(
json_result_file
))
if
coco_results
else
COCO
()
# coco_dt = coco_gt.loadRes(coco_results)
# coco_dt = coco_gt.loadRes(coco_results)
coco_eval
=
COCOeval
(
coco_gt
,
coco_dt
,
iou_type
)
coco_eval
=
COCOeval
(
coco_gt
,
coco_dt
,
iou_type
)
coco_eval
.
evaluate
()
coco_eval
.
evaluate
()
...
...
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