当前位置:网站首页>Modify coco evaluation index maxdets=[10,15,20]
Modify coco evaluation index maxdets=[10,15,20]
2022-06-26 09:14:00 【G fruit】
default COCO The evaluation index maxDets=[1,10,100]
This index means to keep the confidence ranking on each graph of the test set separately The first 1、 front 10、 front 100 A prediction box , Compare these prediction boxes with the real boxes , To calculate AP、AR equivalence ( It's a little complicated. , Specifically, baidu )
stay coco On this common data set , A unified evaluation standard is needed 【 Using other people's data sets must use the evaluation criteria set by other people 】, Therefore, we can see many papers on improved algorithms in coco The effect on the data set is to use AP、AP50 These means
What I need maxDets=[10,15,20]
But I use my own dataset , Only the data format is coco The format of , The original evaluation criteria are not appropriate
for instance : If you test set a graph above the goal of more than 100 individual , You still use it. maxDets=[1,10,100], There must be something wrong with the result
According to my own data set , The target on the pictures of the test set does not exceed 20 individual , What I need maxDets=[10,15,20], To do this, just add a line of code :
find coco_evaluation.py, Found at the end of code coco_eval, Then add a line of code by referring to the following figure
''' Add here '''
coco_eval.params.maxDets=[10,15,20]##
coco_eval.evaluate()
coco_eval.accumulate()
coco_eval.summarlize()
return coco_eval
Of the screenshot here coco_evaluation.py Is from detectron2/evaluation/ Under the table of contents ( Need to install detectron2)
By the way , If you want to change the print content , You can see cocoeval.py Of _summarizeDets() Function
Of the screenshot here cocoeval.py Is from pycocotools/ Under the table of contents ( Need to install pycocotools)

边栏推荐
猜你喜欢

编辑类型信息

How to convert wechat applet into Baidu applet

《一周搞定数电》-逻辑门

Graduation thesis management system based on SSM

Slider verification - personal test (JD)

《单片机原理及应用》——概述

External sorting and heap size knowledge

修复小程序富文本组件不支持video视频封面、autoplay、controls等属性问题
![[cloud primordial | kubernetes chapter] go deep into the foundation of all things - container (V)](/img/67/26508edc451139cd0f4c9511ca1ed2.png)
[cloud primordial | kubernetes chapter] go deep into the foundation of all things - container (V)

实践是成为网工最快的方法,网络工程师实战项目整理
随机推荐
Self taught machine learning series - 1 basic framework of machine learning
Yolov5 advanced level 2 installation of labelimg
拦截器与过滤器的实现代码
phpcms v9后台增加阅读量字段,可任意修改阅读量
Code de mise en œuvre de l'intercepteur et du filtre
Error importerror: numpy core. multiarray failed to import
Differences between commonjs and ES6 modularity
Data warehouse (3) star model and dimension modeling of data warehouse modeling
In depth study paper reading target detection (VII) Chinese version: yolov4 optimal speed and accuracy of object detection
MySQL在服务里找不到(未卸载)
docker安装redis
Course paper: Copula modeling code of portfolio risk VaR
《单片机原理及应用》——概述
Cookie session and token
Uniapp uses uparse to parse the content of the background rich text editor and modify the uparse style
How to set the shelves and windows, and what to pay attention to in the optimization process
Autoregressive model of Lantern Festival
直播回顾 | smardaten李鸿飞解读中国低/无代码行业研究报告:风向变了
Pytorch neural network
Self taught programming series - 4 numpy arrays