LaraStuStu e4784c9c2d dataannotation 5 лет назад
..
.readme e4784c9c2d dataannotation 5 лет назад
data_annotated e4784c9c2d dataannotation 5 лет назад
data_dataset_voc e4784c9c2d dataannotation 5 лет назад
README.md e4784c9c2d dataannotation 5 лет назад
labelme2voc.py e4784c9c2d dataannotation 5 лет назад
labels.txt e4784c9c2d dataannotation 5 лет назад

README.md

Semantic Segmentation Example

Annotation

labelme data_annotated --labels labels.txt --nodata

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