bnsreenu / python_for_microscopists

https://www.youtube.com/channel/UC34rW-HtPJulxr5wp2Xa04w?sub_confirmation=1
MIT License
3.91k stars 2.39k forks source link

usually the segmentation map is 2D but got 3D #77

Open jhaggle opened 9 months ago

jhaggle commented 9 months ago

When I try to train om my own images and segmentation maps I get this:

.../mmsegmentation/mmseg/datasets/transforms/formatting.py:81: UserWarning: Please pay attention your ground truth segmentation map, usually the segmentation map is 2D, but got (209, 286, 3)

The segmentation maps are on the format .../SegmentationClassPNG/seg_img_34.png

Why does this happen and how do I solve it?