提交 351d3ae0 编写于 作者: C chenguowei01

update unet.py

上级 60960064
......@@ -52,7 +52,7 @@ class UNet(fluid.dygraph.Layer):
label,
ignore_index=self.ignore_index,
return_softmax=True,
axis=1)
axis=-1)
loss = loss * mask
avg_loss = fluid.layers.mean(loss) / (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册