先说一下我的代码出现的错误:在运行Unet代码的过程中出现了如下问题:
A Concatenate
layer requires inputs with matching shapes except for the concat axis.Got inputs shapes:[(None,37,37,512),(None,36,36,512)]
我运行unet代码实现细胞分割,但我的细胞图像大小不一,有的超过了512 * 512,有的只有450 * 300,所以我想把所有图像设置为300 * 300,放到unet网络训练,奈何报错。
网上说是图像通道数的顺序问题,参考这个:https://blog.csdn.net/qq_33775871/article/details/89229402
照着修改,但还是错的,因为我用的就是tensorflow。
我的解决办法:用512*512的图片训练unet网络,没有报错了