Skip to content

Commit

Permalink
[Doc] Add annotaion format note (open-mmlab#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvjiarui authored Aug 23, 2020
1 parent 65dae41 commit 9e63ddb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/tutorials/new_dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9e63ddb

Please sign in to comment.