Nanodet project label: yolo2voc2coco

# yolo2voc2coco
labels: txt-->xml-->json

This project support to Nanodet project to make official labels.

1.Nanodet project address

https://github.com/RangiLyu/nanodet

2.making labels means

2.1 alfred tool address

https://github.com/jinfagang/alfred

2.2 download and install

git clone https://github.com/jinfagang/alfred

sudo pip3 install alfred-py #if using python3

sudo pip install alfred-py  #otherwise

2.2.3 yolo-->voc-->coco

2.2.3.1 label: txt-->xml

alfred data yolo2voc --image_dir /Path to yours/coco/images/val2017 --text_dir /Path to yours/coco/labels/val2017 --class_file /Path to yours/classes.txt

See the classes.txt file for details, particular attention as below:

such as 'traffic light' category, not same as 'traffic_light' category in nanodet/config/nanodet-m.yml

2.2.3.2 label: xml-->json

python3 alfred/modules/data/voc2coco.py /Path to yours/valxml /Path to yours/val2017.json

or

alfred data voc2coco --xml_dir /Path to yours/valxml/ --index_1 0 #default annotations_coco.json

valxml: the folder to store xml format of voc label file 

val2017.json: the json format of coco label file

my github: https://github.com/eeric/yolo2voc2coco

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值