[Doc] Add annotaion format note (#77)

This commit is contained in:
Jerry Jiarui XU 2020-08-23 14:42:07 +08:00 committed by GitHub
parent 65dae41bbf
commit 9e63ddbd19

View File

@ -38,6 +38,9 @@ Only
`data/my_dataset/ann_dir/train/xxx{seg_map_suffix}`,
`data/my_dataset/ann_dir/train/zzz{seg_map_suffix}` will be loaded.
Note: The annotations are images of shape (H, W), the value pixel should fall in range `[0, num_classes - 1]`.
You may use `'P'` mode of [pillow](https://pillow.readthedocs.io/en/stable/handbook/concepts.html#palette) to create your annotation image with color.
## Customize datasets by mixing dataset
MMSegmentation also supports to mix dataset for training.