Kentaro Wada 612b40df6f Update labelme2voc.py and labelme2coco.py accordingly 5 年之前
..
.readme 4d4d26ef04 Update README.md 6 年之前
data_annotated 3936c55023 Add group_id for shape annotation 5 年之前
data_dataset_voc 0644d0c6b5 Update examples/**/data_dataset_voc 5 年之前
README.md b3c67fec36 Add --validatelabel to labelme 5 年之前
labelme2voc.py 612b40df6f Update labelme2voc.py and labelme2coco.py accordingly 5 年之前
labels.txt 43c442db27 Add example of semantic_segmentation 7 年之前

README.md

Semantic Segmentation Example

Annotation

labelme data_annotated --labels labels.txt --nodata --validatelabel exact

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