x as dict
This commit is contained in:
parent
202a0b5b85
commit
80561b154e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue