当前位置:网站首页>‘Results do not correspond to current coco set‘
‘Results do not correspond to current coco set‘
2022-07-24 05:49:00 【Hehai CV chicken with vegetables】
In the training YOLOV6 When I met
'Results do not correspond to current coco set'
This problem .
assert set(annsImgIds) == (set(annsImgIds) & set(self.getImgIds())) Check according to this assertion .
call coco API Check it out , Print out len((person_imgs_id) The value of is 297.
from pycocotools.coco import COCO
val_info = r'VOC/annotations/instances_val.json'
coco = COCO(val_info) # Import validation set
person_imgs_id = coco.getImgIds()
print(len(person_imgs_id))
While checking set(annsImgIds) when , stay evaler.py Of documents eval_model In this method
annsImgIds = [ann['image_id'] for ann in pred_results]
print(len(set(annsImgIds)))The printed length is 497( That is, the number of my validation sets )
And then I checked instances_val.json file , Find out

image_id yes 6, And my data picture id by 6.8CAXX.jpg, Then we find the problem .
stay dataset.py Medium generate_coco_format_labels In the method
img_id = osp.basename(img_path).split('.')[0]This causes the image to be divided by a point id,6.8CAXX.jpg Divided and multiplied 6、8CAXX、jpg Three strings , So it led to json In the document image_id by 6 The situation of .
terms of settlement :
stay dataset.py Medium generate_coco_format_labels In the method
img_id = osp.basename(img_path).split('j')[0].strip('.')take img_id Change to the above code , With j Division , Remove the remaining points , The code can successfully run through
边栏推荐
- 数据仓库与数仓建模
- likeshop单商户SAAS商城系统搭建,代码开源无加密。
- Official account development custom menu and server configuration are enabled at the same time
- PLSQL query data garbled
- 主成分分析计算步骤
- 《统计学习方法(第2版)》李航 第十三章 无监督学习概论 思维导图笔记
- Flink format series (1) -json
- Multi merchant mall system function disassembly lecture 12 - platform side commodity evaluation
- 【mycat】mycat配置文件
- 找ArrayList<ArrayList<Double>>中出现次数最多的ArrayList<Double>
猜你喜欢

多商户商城系统功能拆解07讲-平台端商品管理

西瓜书/南瓜书--第1,2章总结
![Brief introduction of [data mining] cluster analysis](/img/9b/3484cf1353686d38dcf32e845b1903.jpg)
Brief introduction of [data mining] cluster analysis

‘Results do not correspond to current coco set‘

第五章神经网络

Recommend a fully open source, feature rich, beautiful interface mall system

Mysqldump export Chinese garbled code

主成分分析计算步骤

Multi merchant mall system function disassembly lesson 03 - platform side merchant management

多商户商城系统功能拆解04讲-平台端商家入驻
随机推荐
Flink task, sub task, task slot and parallelism
程序员常说的API是什么意思?API类型有什么呢?
Too many database connections
多商户商城系统功能拆解10讲-平台端商品单位
Recommend a fully open source, feature rich, beautiful interface mall system
likeshop单商户SAAS商城系统搭建,代码开源无加密。
多商户商城系统功能拆解07讲-平台端商品管理
[activiti] activiti environment configuration
Official account development custom menu and server configuration are enabled at the same time
国内外知名源码商城系统盘点
Flink sql-client.sh use
在网络中添加SE通道注意力模块
【activiti】activiti系统表说明
《机器学习》(周志华) 第4章 决策树 学习心得 笔记
Numpy数组广播规则记忆方法 array broadcast 广播原理 广播机制
数据归一化
Highcharts use custom vector maps
Connect CRM system and effect advertising, help enterprises with precision marketing, and help enterprises with precision marketing
多商户商城系统功能拆解12讲-平台端商品评价
数据库连接数过大