当前位置:网站首页>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 .
边栏推荐
- SQL exercise 4: string processing function
- Visio 转为高质量PDF
- [tcapulusdb knowledge base] tcapulusdb viewing process status introduction
- CCF CSP 202109-4 collect cards
- Whale conference sharing: what should we do if the conference is difficult?
- TcaplusDB君 · 行业新闻汇编(四)
- ArrayList的扩容机制
- [tcapulusdb knowledge base] Introduction to the machine where the tcapulusdb viewing process is located
- 笔记(二)
- Apache相关的几个安全漏洞修复
猜你喜欢

Opencv_100问_第四章 (16-20)

罗永浩:我要是负责人 能让苹果产品上去三个台阶不止
![[tcapulusdb knowledge base] Introduction to the machine where the tcapulusdb viewing process is located](/img/7c/d86d228bb8e9f0716e0a5511217889.png)
[tcapulusdb knowledge base] Introduction to the machine where the tcapulusdb viewing process is located

【TcaplusDB知识库】TcaplusDB推送配置介绍

(十一)TableView

《暗黑破坏神不朽》数据库资料站地址 暗黑不朽资料库网址

【TcaplusDB知识库】TcaplusDB机器初始化和上架介绍

Redis从入门到入土
![[tcapulusdb knowledge base] Introduction to tcapulusdb process startup](/img/df/08a5e9b939ab158a86c75c92697864.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb process startup

(11) Tableview
随机推荐
【TcaplusDB知识库】TcaplusDB查看线上运行情况介绍
SQLServer数据库应用与开发:第九章上机
进阶高级程序员必知必会. 要不然,蠢材吗
[MySQL] summary of common data types
I have made a dating app for myself. Interested friends can have a look
CCF CSP 202109-1数组推导
【Debug】could not find ref wiht poc XXX解决
CCF CSP 202109-2 非零段划分【100分】
String search in C
【TcaplusDB知识库】TcaplusDB shard搬迁介绍
Apache相关的几个安全漏洞修复
Matlab - Implementation of evolutionary game theory
鯨會務智慧景區管理解决方案
Storage engine analysis
【小程序】Vant-Weapp Radio单选框组件无法触发bind:Change事件
【phpstorm】 No data sources are configured to run this SQL and provide advanced c
Visio to high quality pdf
QT custom delegation
leetcode 130. Surrounded Regions 被围绕的区域(中等)
[tcapulusdb knowledge base] Introduction to tcapulusdb patrol inspection statistics