Kentaro Wada 5c9808446a Format code with black 4 anni fa
..
.readme 03d7d365ce Update README images 5 anni fa
data_annotated 61f5fee418 Remove lineColor and shapeColor keys from example JSON files 5 anni fa
data_dataset_voc e305c510a2 Update examples/semantic_segmentation 5 anni fa
README.md 8b5b4ea410 Use visible colors as default for auto_shape_color 5 anni fa
labelme2voc.py 5c9808446a Format code with black 4 anni fa
labels.txt 43c442db27 Add example of semantic_segmentation 7 anni fa

README.md

Semantic Segmentation Example

Annotation

labelme data_annotated --labels labels.txt --nodata --validatelabel exact --config '{shift_auto_shape_color: -2}'

Convert to VOC-format Dataset

# It generates:
#   - data_dataset_voc/JPEGImages
#   - data_dataset_voc/SegmentationClass
#   - data_dataset_voc/SegmentationClassVisualization
./labelme2voc.py data_annotated data_dataset_voc --labels labels.txt

Fig 1. JPEG image (left), PNG label (center), JPEG label visualization (right)

Note that the label file contains only very low label values (ex. 0, 4, 14), and 255 indicates the __ignore__ label value (-1 in the npy file).
You can see the label PNG file by following.

labelme_draw_label_png data_dataset_voc/SegmentationClassPNG/2011_000003.png