list-labels

You need to be a Pro member to access the full content of this.

list-labels list unique labels that are ever annotated in the JSON files you provide:

Usage

As the argument, you can pass either a JSON file or directory of JSON files.

labelmetk list-labels [OPTIONS] FILE_OR_DIR

Example: Show the list of labels

If you’d like to show the list of labels for your dataset, pass the directory:

labelmetk list-labels small_dataset

Example: Export the list of labels to a file

If you’d like to export the list of labels into another file (e.g., labels.txt), you can do so by:

labelmetk list-labels small_dataset > labels.txt

This is useful when you’d like to export the dataset, since image training model often requires to know the number of unique labels in the beginning of the training loop.

Download an example dataset from:

small_dataset.zip (389KB)