目标检测数据集分析

目标检测数据集分析

📢 新增支持数据集可视化,使用方法见Object-detection dataset analyze

项目地址

GitHub - Ghlerrix/DataAnalyze: Object-detection dataset analyze

图片数量、标注框数量、类别信息

这些信息会在终端打印出来,格式如下:

Parsing dataset, please wait...
Parsing done. (0.013s)

number of images: 1266
number of annotations: 2950
number of categories: 6
names of categories:  ['inclusion', 'rolled-in_scale', 'pitted_surface', 'patches', 'crazing', 'scratches']

所有图片宽度和高度的散点图

这里只有一个点,是因为所有的图片尺寸相同

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724135917043.png

所有标注框宽度和高度的散点图

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724135938272.png

标注框宽度和高度之比 横坐标为比率,纵坐标为数量

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724142948691.png

每一类的标注框数量

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724133028407.png

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724133043677.png

每一类图片数量

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724133120693.png

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724133238728.png

每一张图片上的标注框数量

横坐标为一张图片上的标注框数量,纵坐标为图片数量

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724133318433.png

不同尺寸的图片数量

根据coco的划分规则计算

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724140109094.png

https://fastly.jsdelivr.net/gh/Ghlerrix/ImageHosting/img/image-20230724140052480.png

使用方法

GitHub - Ghlerrix/DataAnalyze: Object-detection dataset analyze

Install

git clone https://github.com/Ghlerrix/DataAnalyze.gitcd DataAnalyzepip install -r requirements.txt

Usage

python analyze.py ${type} ${path} [--out ${out}]
  • type The format of the dataset, optional ‘coco’ or ‘voc’.
  • path The path of dataset. If type is ‘coco’, the path is the json file path. If type is ‘voc’, the path is the path of the xml file directory.
  • -out is the output directory, default is ‘./out’

Example

python analyze.py coco ./tarin.json --out ./out/
python analyze.py voc ./xml/ --out ./out/
posted @   Ghlerrix  阅读(72)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
点击右上角即可分享
微信分享提示