pip install labelme-toolkit
curl -O https://raw.githubusercontent.com/labelmeai/toolkit/main/labelme_toolkit/_data/dogs.json
# or
# wget https://raw.githubusercontent.com/labelmeai/toolkit/main/labelme_toolkit/_data/dogs.json
labelme-toolkit json-to-mask dogs.json --browse
% labelmetk --help
Usage: labelmetk [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
extract-image Extract image from a JSON file.
install-toolkit-pro Install Toolkit Pro.
json-to-mask Convert a Labelme JSON file to a mask.
json-to-visualization Convert a Labelme JSON file to a visualization.
list-labels List unique labels in the JSON files.