Skip to content

Commit

Permalink
Fix decouple_seg export bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
nepeplwu committed Jun 23, 2021
1 parent 835f1c7 commit 34c1bbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paddleseg/models/decoupled_segnet.py
Expand Up @@ -79,7 +79,9 @@ def forward(self, x):
align_corners=self.align_corners) for logit in logit_list
]

return [seg_logit, body_logit, edge_logit, (seg_logit, edge_logit)]
if self.training:
return [seg_logit, body_logit, edge_logit, (seg_logit, edge_logit)]
return [seg_logit]

def init_weight(self):
if self.pretrained is not None:
Expand Down

0 comments on commit 34c1bbf

Please sign in to comment.