当前位置:网站首页>Use of cocoeval function
Use of cocoeval function
2022-06-10 22:41:00 【Wu lele~】
List of articles
background
coco Data sets are often used in target detection tasks , and coco Don't like voc So straightforward . Especially in terms of evaluation methods . therefore , Recorded in this article cocoeval Function USES , Have a bad memory .
1、 Code
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
import numpy as np
import pylab,json
if __name__ == "__main__":
gt_path = "/home/wujian/WLL/mmdet-master/data/coco/annotations/instances_val2017.json" # The path where the real label is stored
dt_path = "/home/wujian/WLL/mmdet-master/tools/work_dirs/yolo_result/my_result.json" # The path where the test results are stored
cocoGt = COCO(gt_path)
cocoDt = cocoGt.loadRes(dt_path)
cocoEval = COCOeval(cocoGt, cocoDt, "bbox") #
cocoEval.evaluate()
cocoEval.accumulate()
cocoEval.summarize()
2、 File download
File download address in code
[ Be careful ]: The above two documents bbox It's all [xmin,ymin,w,h] Format !! If you have any questions, welcome +vx:wulele2541612007, Pull you into the group to discuss communication .
边栏推荐
- LeetCode - 5. 最长回文子串
- GMPNN:Drug-drug interaction prediction with learnable size-adaptive molecular substructures.
- 重排 (reflow) 与重绘 (repaint)
- Latex error: file ‘xxx. sty‘ not found
- 【TcaplusDB知识库】TcaplusDB引擎参数调整介绍
- [MySQL] summary of common data types
- Management solution for whale conference smart scenic spot
- 自己做了个相亲交友App,有兴趣的朋友可以看看
- dc_labs--lab1的学习与总结
- 中小型会议如何进行数字化升级?
猜你喜欢

Back to table query of MySQL? How to avoid it?

GMPNN:Drug-drug interaction prediction with learnable size-adaptive molecular substructures.

【phpstorm】 No data sources are configured to run this SQL and provide advanced c

【TcaplusDB知识库】TcaplusDB查看进程状态介绍

TcaplusDB君 · 行业新闻汇编(三)
![[tcapulusdb knowledge base] tcapulusdb viewing online operation](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] tcapulusdb viewing online operation

存储引擎分析

GMPNN:Drug-drug interaction prediction with learnable size-adaptive molecular substructures.

鯨會務智慧景區管理解决方案

How small and micro enterprises build micro official websites at low cost
随机推荐
【TcaplusDB知识库】TcaplusDB机器初始化和上架介绍
mathtype7.x的基本使用
Capacity expansion mechanism of ArrayList
很流行的状态管理库 MobX 是怎么回事?
Opencv_100问_第四章 (16-20)
鯨會務智慧景區管理解决方案
【TcaplusDB知识库】TcaplusDB推送配置介绍
Qt自定义委托
Tcapulusdb Jun · industry news collection (I)
[tcapulusdb knowledge base] tcapulusdb viewing process status introduction
CCF CSP 202109-1数组推导
自己做了个相亲交友App,有兴趣的朋友可以看看
[problem] solve the problem of websocket string length limitation. The single packet is too large
《暗黑破坏神不朽》数据库资料站地址 暗黑不朽资料库网址
【TcaplusDB知识库】TcaplusDB日常巡检介绍
Latex error: file ‘xxx. sty‘ not found
笔记(五)- JVM
CCF CSP 202109-3 脉冲神经网络
[tcapulusdb knowledge base] tcapulusdb refresh tbus channel introduction
Add, delete, query and modify [MySQL] table data (DML)