解决DHSNet ValueError: operands could not be broadcast together with shapes (224,224) (3, ) (224,224)
最近在复现DHSnet-pytorch模型,代码调试过程中遇到如下错误:ValueError:operandscouldnotbebroadcasttogetherwithshapes(224,224)(3,)(224,224)通过错误描述可知该问题出现在dataset.py文件的第56行:该函数的功能是将输入图片和groundtruth进行真值处理,以增强物体与背景的对比度,最后转化为GPU可以