当前位置:网站首页>Mmdetection valueerror: need at least one array to concatenate solution
Mmdetection valueerror: need at least one array to concatenate solution
2022-06-27 02:17:00 【Ten thousand miles' journey to】
stay mmdetection Sometimes the training model will appear ValueError: need at least one array to concatenate Error of , The details are shown in the figure below .

A lot of people say it's mmdet/dataset Next coco.py or voc.py in CLASSES The setting does not correspond to the dataset , Bloggers don't think so . Because in mmdetection2 in , You don't need to be there mmdet/dataset Revision in China CLASSES, Just set it in the training configuration file .config The interpreter will automatically modify through inheritance CLASSES Value , See the figure below for details , Or reference mmdetection2 The use of tutorials from data processing 、 Profiles to training and testing ( Support coco Data and pascal_voc data )_ A flash of hope to my blog -CSDN Blog _mmdetection2
https://hpg123.blog.csdn.net/article/details/124617894

As long as the configuration file classes The setting is correct ,voc The above error reports will not appear in the data .
however ,coco The data set is set incorrectly during data conversion , The above error occurs . Bloggers' datasets are only shoot A category , During dataset conversion , In the following ways tools\dataset_converters\pascal_voc.py File set category .【 Wrong way 】
And then generated coco Data problems , There was only one shoot Categories of coco data , It turns out 20 More than a supercategory project . This is the root cause of error reporting .

When converting datasets , Need to pass in tools\dataset_converters\pascal_voc.py The file modifies the custom category according to the following standards and settings
Generated in this way coco The data set is strictly correct , Its categories The format of is shown in the figure below . If it is generated through a third-party project coco data , Please check categories Whether the data in and the category of the dataset are normal .
In the revision coco Data set error , Now? mmdetection You can train data normally .

边栏推荐
- YaLM 100B:来自俄罗斯Yandex的1000亿参数开源大模型,允许商业用途
- P5.js death planet
- Oracle/PLSQL: Trim Function
- Oracle/PLSQL: Ltrim Function
- Sample development of WiFi IOT Hongmeng development kit
- ThreadLocal详解
- H5 liquid animation JS special effect code
- paddlepaddle 19 动态修改模型的最后一层
- Oracle/PLSQL: From_Tz function
- Getting started with bluecms code auditing
猜你喜欢

h5液体动画js特效代码

Learn Tai Chi maker mqtt (IX) esp8266 subscribe to and publish mqtt messages at the same time

参数估计——《概率论及其数理统计》第七章学习报告(点估计)

企业数字化转型:信息化与数字化

WiFi-IoT 鸿蒙开发套件样例开发

使用命令行安装达梦数据库

ThreadLocal详解

Would rather go to 996 than stay at home! 24 years old, unemployed for 7 months, worse than work, no work

dat.gui.js星星圆圈轨迹动画js特效

Flink learning 3: data processing mode (stream batch)
随机推荐
pytorch 22 8种Dropout方法的简介 及 基于Dropout用4行代码快速实现DropBlock
P5.js death planet
Oracle/PLSQL: HexToRaw Function
H5 liquid animation JS special effect code
热议:月薪1.8万却毫无意义的工作,你干吗?
STM32入门介绍
Precautions for using sneakemake
Oracle/PLSQL: HexToRaw Function
Microsoft365开发人员申请
C language -- Design of employee information management system
Oracle/PLSQL: Translate Function
Oracle/PLSQL: Substr Function
[array] sword finger offer II 012 The sum of left and right subarrays is equal | sword finger offer II 013 Sum of two dimensional submatrix
企业数字化转型:信息化与数字化
1、项目准备与新建
学习太极创客 — MQTT(六)ESP8266 发布 MQTT 消息
我靠副业一个月挣了3W块:你看不起的行业,真的很挣钱!
canvas粒子篇之鼠标跟随js特效
Oracle/PLSQL: Trim Function
memcached基础9