在 Labelme 5.8 版本中(5.x以上),labelme_json_to_dataset 命令已被替换为labelme_export_json,使用labelme_json_to_dataset会报错。
labelme_export_json 是新版中用于将 JSON 文件转换为数据集的工具。用法如下:
labelme_export_json <json_file> -o <output_dir>
- <json_file>:你的 Labelme 标注 JSON 文件路径。
- <output_dir>:输出的数据集目录(会生成 label.png、img.png 等文件)
注:在”..\.conda\envs\labelme\Lib\site-packages\labelme\cli“文件夹下已无”json_to_dataset.py“文件: