This command converts a Labelme JSON file to mask files.

Untitled

Usage

As the argument, you can pass either JSON files or directories of JSON files.

labelmetk json-to-masks [OPTIONS] FILES_OR_DIRS...

Examples

Convert a JSON file

If you only have a single JSON file, pass it to the command:

labelmetk json-to-masks small_dataset/2011_000003.json

to get mask images:

Untitled

Untitled

<aside> <img src="/icons/light-bulb_gray.svg" alt="/icons/light-bulb_gray.svg" width="40px" /> It converts each “group” represented by group_id (in this case 0):

Untitled

Untitled

</aside>