divamgupta / image-segmentation-keras

Implementation of Segnet, FCN, UNet , PSPNet and other models in Keras.
https://divamgupta.com/image-segmentation/2019/06/06/deep-learning-semantic-segmentation-keras.html
MIT License
2.92k stars 1.16k forks source link

PNG pictures with α channel #370

Open LaBiXiaoChai opened 2 years ago

LaBiXiaoChai commented 2 years ago

How do I use PNG pictures with α channel to train? I have changed the parameters in train.py (read_image_type=-1), but it does not work.

OP_REQUIRES failed at conv_ops.cc:529 : Invalid argument: input depth must be evenly divisible by filter depth: 4 vs 3