[Fix] Fix decode head forward_train error. (#1997)

This commit is contained in:
Wencheng Wu 2022-08-30 20:43:10 +08:00 committed by GitHub
parent acff83909f
commit 74e13cfa61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,7 +200,7 @@ class BaseDecodeHead(BaseModule, metaclass=ABCMeta):
Returns:
dict[str, Tensor]: a dictionary of loss components
"""
seg_logits = self.forward(inputs)
seg_logits = self(inputs)
losses = self.losses(seg_logits, gt_semantic_seg)
return losses