Pytorch-UNet icon indicating copy to clipboard operation
Pytorch-UNet copied to clipboard

How to resolve "KeyError: ((1, 1, 6), '|u1')"?

Open JenniferYingyiWu2020 opened this issue 3 years ago • 3 comments

Hi, I have used my own data set, that is all the ".tiff" images, the "n_channels" is 3, the "n_classes" is 6. However, when I run the "python train.py --amp", the following errors appear: 100

Could you pls help to give me some suggestions? Thanks!

JenniferYingyiWu2020 avatar Sep 27 '21 03:09 JenniferYingyiWu2020

what about your mask dataset, it should be single channel image

kimile599 avatar Oct 01 '21 20:10 kimile599

So mask is grayscale?

fanxiaochen-123 avatar Oct 27 '21 03:10 fanxiaochen-123

@JenniferYingyiWu2020 Have you solved the problem yet?

fanxiaochen-123 avatar Oct 27 '21 03:10 fanxiaochen-123