Kentaro Wada dd07e04afa Add draw_label_png visualization to README of examples 7 ani în urmă
..
.readme dd07e04afa Add draw_label_png visualization to README of examples 7 ani în urmă
data_annotated 43c442db27 Add example of semantic_segmentation 7 ani în urmă
data_dataset_voc 43c442db27 Add example of semantic_segmentation 7 ani în urmă
README.md dd07e04afa Add draw_label_png visualization to README of examples 7 ani în urmă
labelme2voc.py d5a4a64547 Remove PIL.ImagePalette from labelme2voc.py 7 ani în urmă
labels.txt 43c442db27 Add example of semantic_segmentation 7 ani în urmă

README.md

Semantic Segmentation Example

Annotation

labelme data_annotated --labels labels.txt --nodata

Convert to VOC-like Dataset

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

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

Note that the reason why the label file is mostly black is it contains only very low label values (ex. -1, 0, 4, 14).
You can see the label PNG file by following.

labelme_draw_label_png data_dataset_voc/SegmentationClass/2011_000003.png