Open sandonair007 opened 5 years ago
I have confirmed the label image Annotation-tool outputs includes the mixed color because some label's area are over wrapped.
This situation is unnatural for a general segmentation dataset. I think they, Annotation-tool, should fix this.
I researched about combined logic in annotation tool. it looks like the layers are correctly overcoated.
In Annotation Screen shot
Convined image data
Zoom up image by drawing tool (Pixelmator Pro)
| organization_id | 1815063019817 | | datalake_channel_id | 1888808746696 | | file_id | 20191007T012627-0cebbeb0-d4d9-48ab-9518-293f14ff25a8 |
Motivation
Train a segmentation model on Platform, when dataset annotation is from ABEJA Annotation Tool.
Problem
Generally we use combined mask (multiple colors exist in one png image) as the target. Though we have pre-defined label-color map dict for the annotation job, mixed colors often appear along the margin of different color blocks, which results in unknown label ids when converting png to label array using
PIL.Image.Palette
. Finally the training ends up with errors like:Example
The above image shows the original mask.
The white dots denote the pixels where mix color exists (new label id will be created.)
Solutions