当前位置:网站首页>cocoeval函数使用
cocoeval函数使用
2022-06-10 16:54:00 【武乐乐~】
背景
coco数据集在目标检测任务中经常用到,而coco并不像voc那样直白。尤其在评估方法方面。因此,本文记录下cocoeval函数使用,记性不好。
1、代码
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" # 存放真实标签的路径
dt_path = "/home/wujian/WLL/mmdet-master/tools/work_dirs/yolo_result/my_result.json" # 存放检测结果的路径
cocoGt = COCO(gt_path)
cocoDt = cocoGt.loadRes(dt_path)
cocoEval = COCOeval(cocoGt, cocoDt, "bbox") #
cocoEval.evaluate()
cocoEval.accumulate()
cocoEval.summarize()
2、文件下载
代码中文件下载地址
[注意]:上述两个文件bbox均是[xmin,ymin,w,h]格式!! 若有问题欢迎+vx:wulele2541612007,拉你进群探讨交流。
边栏推荐
猜你喜欢

Gateway service gateway

pands pd. Detailed parsing of dataframe() function

丢失的遗传力--Missing heritability

Solve the problem that idea is stuck in opening a project

元宇宙的定义和 7 大无限特征

Web3最全搞钱秘籍,看这一篇就够了

Xinsi technology performed well in the Gartner application security test key capability report 2022 and won the highest score among the five common use cases

淘宝短视频避坑指南系列之一--彻底了解淘宝短视频

仅需三步学会使用低代码ThingJS与森数据DIX数据对接

路由器实验之serial接口的静态路由配置(补充)
随机推荐
web集群基础知识学习(1)
What are the differences between domain name filing and ICP filing?
[BSP video tutorial] BSP video tutorial issue 17: single chip microcomputer bootloader topic, startup, jump configuration and various usage of debugging and downloading (2022-06-10)
vscode常用插件与配置
matplotlib plt.text()的具体用法——画图时给图中的点加标签
Fabric. JS zoom canvas
OpenJudge NOI 1.13 15:求序列中的众数
Gateway service gateway
Swing visualization plug-in jformdesigner of idea
Mapbox GL development tutorial (11): loading line layers
IPO治不了威马的杂症?
高数_第6章无穷级数__正项级数的性质
2022年焊工(初级)试题模拟考试平台操作
Take you to a preliminary understanding of the basic mechanism of classes and objects
Redis general instruction
matplotlib plt. Specific usage of text() - labeling points in a drawing
嘿!ONES 新星请看过来|师兄师姐说
Importerror: libgl.so.1: cannot open shared object file: no such file or directory
目标客户匹配数据表格成功案例展示
Gateway服务网关