labelme标注图像分割(语义分割)样本

1、下载:pip install labelme

2、将需要标注的图像存入images目录,cd到images目录的父目录

3、新建labels.txt文件,ansi编码,其中录入类别

__ignore__
_background_
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
potted plant
sheep
sofa
train
tv/monitor

4、命令行启动labelme

labelme images --labels labels.txt --nodata

将所有图片标注完毕,退出labelme

5、下载批量转换py代码

进入https://github.com/wkentaro/labelme/tree/master/examples/semantic_segmentation页面,下载labelme2voc.py

6、转换

python.exe ./labelme2voc.py images data_dataset_voc --labels ./labels.txt

转换后效果如下图:

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值