未验证 提交 da3a1fc9 编写于 作者: U user1018 提交者: GitHub

fix distill bug (#6733)

上级 4708b081
......@@ -436,7 +436,7 @@ class FGDFeatureLoss(nn.Layer):
Mask_bg = paddle.ones_like(tea_spatial_att)
one_tmp = paddle.ones([*tea_spatial_att.shape[1:]])
zero_tmp = paddle.zeros([*tea_spatial_att.shape[1:]])
mask_fg.stop_gradient = True
Mask_fg.stop_gradient = True
Mask_bg.stop_gradient = True
one_tmp.stop_gradient = True
zero_tmp.stop_gradient = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册