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

x as dict

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