ValueError: operands could not be broadcast together with shapes (416,416,4) (3,)
1.问题描述在深度学习训练、读取图片时,遇到下面问题ValueError:operandscouldnotbebroadcasttogetherwithshapes(416,416,4)(3,)2.原因分析一般是读三通道的图片,即RGB图片,而根据报错情况,可以看到图片是四通道,此外还有灰度图是单通道也会类似情况。3.处理方法3.1直接跳过非三通道图片forimginimgs:img=os.pat