提交 80561b15 编写于 作者: L LDOUBLEV

x as dict

上级 202a0b5b
......@@ -79,6 +79,9 @@ class BaseModel(nn.Layer):
x = self.neck(x)
y["neck_out"] = x
x = self.head(x, targets=data)
if type(x) is dict:
y.update(x)
else:
y["head_out"] = x
if self.return_all_feats:
return y
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册