1、csv_to_coco.py
更改配置文件:
classname_to_id = {"person": 1} # for your dataset classes
csv_file = "labels.csv" # annatations file path
image_dir = "images/" # original image path
saved_coco_path = "./" # path to save converted coco dataset
2、csv_to_xml.py
更改配置文件:
csv_file = "labels.csv"
saved_path = ".VOC2007/" # path to save converted voc dataset
image_save_path = "./JPEGImages/" # converted voc images path
image_raw_parh = "images/" # original image path
3、json_to_coco.py
更改配置文件:
classname_to_id = {"person": 1} # for your dataset classes
labelme_path = "labelme/" # path for labelme dataset
saved_coco_path = "./" # path for saved coco dataset
4、json_to_xml.py
更改配置文件:
labelme_path = "labelme/" # path for labelme dataset
saved_coco_path = "./" # path for saved coco dataset
5、csv_to_json.py
更改配置文件:
image_path = "./images/" # path for images
csv_file = "./" # path for csv annotations
6、xml_to_csv.py
更改配置文件:
os.chdir('path/to/annotations/') # path for xml annotations
path = 'path/to/annotations/' # 绝对路径
img_path = 'path/to/images/' # path for images
xml_df.to_csv('labels.csv', index=None) # name for labels
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
AI数据集格式转换Python源码(csv、json、xml、coco).zip (7个子文件)
数据格式转换
csv_to_json.py 2KB
json_to_coco.py 4KB
csv_to_xml.py 4KB
csv_to_coco.py 5KB
使用指南.txt 1KB
json_to_xml.py 4KB
xml_to_csv.py 2KB
共 7 条
- 1
Moresweet猫甜
- 粉丝: 3431
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0