Person-Segmentation-Keras icon indicating copy to clipboard operation
Person-Segmentation-Keras copied to clipboard

eval_segmentation.py

Open buaa-luzhi opened this issue 5 years ago • 6 comments

@TianzhongSong,您好! gt_img[:] += (gt[:] == 1).astype('uint8') pt_img[:] += (pt[:] == c).astype('uint8')

gt_img[:] shape=(1,50176, 2) gt[:] shape=(50176,)

pt_img[:] shape=(1,50176, 2) pt[:] shape=(50176,) 这应该也是个问题吧

buaa-luzhi avatar Apr 25 '19 03:04 buaa-luzhi

您好 我也遇到同样的问题,请问您解决了吗? File "eval_segmentation.py", line 56, in gt_img[:] += (gt[:] == 1).astype('uint8') ValueError: operands could not be broadcast together with shapes (1,50176,11) (50176,) (1,50176,11)

python1806huqiugen avatar Oct 09 '19 12:10 python1806huqiugen

在 gt_img [:] + =(gt [:] == 1)中的文件“ eval_segmentation.py”(第56行).astype('uint8') ValueError 文件中 ,您好我也遇到同样的问题, 请问您解决了吗?:操作数不能与形状(1,50176,11)(50176,)(1,50176,11)一起广播 请问你解决了吗?

zkh418277390 avatar Nov 04 '19 10:11 zkh418277390

shape不一致,改成 gt_img = np.zeros_like(gt) pt_img = np.zeros_like(gt)

Chancetc avatar Dec 30 '19 07:12 Chancetc

谢谢您,代码已经调通。

------------------ 原始邮件 ------------------ 发件人: "Chancetc"<[email protected]>; 发送时间: 2019年12月30日(星期一) 下午3:57 收件人: "TianzhongSong/Person-Segmentation-Keras"<[email protected]>; 抄送: "418277390"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [TianzhongSong/Person-Segmentation-Keras] eval_segmentation.py (#11)

shape不一致,改成 gt_img = np.zeros_like(gt) pt_img = np.zeros_like(gt)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

zkh418277390 avatar Dec 30 '19 08:12 zkh418277390

请问各位的代码跑出来是label标记的人形状么?我的预测完以后为什么都是椭圆状的,丝毫没有类似的人label形状

WuGe0424 avatar Mar 17 '20 11:03 WuGe0424

请问各位的代码跑出来是label标记的人形状么?我的预测完以后为什么都是椭圆状的,丝毫没有类似的人label形状

是的,我的也是这样,请问后来解决了吗?

minushuang avatar Dec 21 '21 07:12 minushuang