[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 e951076bf2
commit 03ba9c6c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,9 @@ Only
`data/my_dataset/ann_dir/train/xxx{seg_map_suffix}`, `data/my_dataset/ann_dir/train/xxx{seg_map_suffix}`,
`data/my_dataset/ann_dir/train/zzz{seg_map_suffix}` will be loaded. `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 ## Customize datasets by mixing dataset
MMSegmentation also supports to mix dataset for training. MMSegmentation also supports to mix dataset for training.