报错如下:
ValueError: A `Concatenate` layer requires inputs with matching shapes except for the concat axis.
在运行unet代码的时候报出如上错误,可能原因:a.图片不是方形 b.图片与图片之间的维度出现匹配问题
检查代码:input2 = concatenate([input2, pool1], axis=3),由于在其他代码处设置的是axis=1,所以将此处的axis=3改为axis=1即可。