当前位置:网站首页>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 .

边栏推荐
- Oracle/PLSQL: Lpad Function
- Don't be brainwashed. This is the truth about the wages of 90% of Chinese people
- Laravel 的 ORM 缓存包
- 谷歌开始卷自己,AI架构Pathways加持,推出200亿生成模型
- 学习太极创客 — MQTT(八)ESP8266订阅MQTT主题
- Flink学习5:工作原理
- Learn from Taiji Maker - mqtt Chapter 2 (I) QoS service quality level
- Flink learning 3: data processing mode (stream batch)
- XSS攻击(笔记)
- Oracle/PLSQL: To_ Clob Function
猜你喜欢

学习太极创客 — MQTT(八)ESP8266订阅MQTT主题

解决cherry pick提交报错问题

I earned 3W yuan a month from my sideline: the industry you despise really makes money!

DAMA、DCMM等数据管理框架各个能力域的划分是否合理?有内在逻辑吗?

Learn Tai Chi Maker - mqtt (VI) esp8266 releases mqtt message

学习太极创客 — MQTT 第二章(二)ESP8266 QoS 应用

学习太极创客 — MQTT(七)MQTT 主题进阶

Consumers pursue the iPhone because its cost performance exceeds that of domestic mobile phones

Learn from Taiji Maker - mqtt Chapter 2 (I) QoS service quality level

SQLite Reader 插件测试SQLite语法
随机推荐
docker部署redis集群
Is the division of each capability domain of Dama, dcmm and other data management frameworks reasonable? Is there internal logic?
Oracle/PLSQL: Rpad Function
别被洗脑了,这才是90%中国人的工资真相
Constraintlayout Development Guide
memcached基础10
Dameng database installation
Oracle/PLSQL: Rtrim Function
Learn Tai Chi Maker - mqtt Chapter 2 (3) reserved messages
Memcached basics 11
Yalm 100b: 100billion parameter open source large model from yandex, Russia, allowing commercial use
Oracle/PLSQL: To_Clob Function
Oracle/PLSQL: HexToRaw Function
【微服务|Sentinel】降级规则|慢调用比例|异常比例|异常数
memcached基础13
mmdetection 用yolox训练自己的coco数据集
Oracle/PLSQL: Substr Function
Flink學習2:應用場景
paddlepaddle 19 动态修改模型的最后一层
Sample development of WiFi IOT Hongmeng development kit