Kentaro Wada 93ae5a5bb8 Update draw_label_png_class.jpg 7 anos atrás
..
.readme 93ae5a5bb8 Update draw_label_png_class.jpg 7 anos atrás
data_annotated 4f2e652483 Add examples/instance_segmentation 7 anos atrás
data_dataset_voc 4f2e652483 Add examples/instance_segmentation 7 anos atrás
README.md dd07e04afa Add draw_label_png visualization to README of examples 7 anos atrás
labelme2voc.py d5a4a64547 Remove PIL.ImagePalette from labelme2voc.py 7 anos atrás
labels.txt 4f2e652483 Add examples/instance_segmentation 7 anos atrás

README.md

Instance 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
#   - data_dataset_voc/SegmentationObject
#   - data_dataset_voc/SegmentationObjectVisualization
./labelme2voc.py labels.txt data_annotated data_dataset_voc


Fig 1. JPEG image (left), JPEG class label visualization (center), JPEG instance 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   # left
labelme_draw_label_png data_dataset_voc/SegmentationObject/2011_000003.png  # right