安装 labelme
安装
conda create -n labelme python=3.6
conda activate labelme
pip install labelme
git clone https://github.com/wkentaro/labelme.git
运行
labelme <target-folder-path>
数据转换
python <path-to-labelme-git-folder>/examples/<your-target>/labelme2voc.py <path-to-your-labeled-folder> <output-folder-path> --labels <path-to-labels.txt>
可选
--noviz # 取消生成标注结果文件夹
labels.txt 格式
__ignore__
_background_
<your-label-1>
<your-label-2>
...