From 5cc452a3ede9d51b4621a728c47ba6613772147e Mon Sep 17 00:00:00 2001 From: MengzhangLI Date: Fri, 25 Feb 2022 23:14:42 +0800 Subject: [PATCH] modify uperhead --- mmseg/models/decode_heads/uper_head.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmseg/models/decode_heads/uper_head.py b/mmseg/models/decode_heads/uper_head.py index e752896d61..06b152a3f0 100644 --- a/mmseg/models/decode_heads/uper_head.py +++ b/mmseg/models/decode_heads/uper_head.py @@ -109,7 +109,7 @@ def _forward_feature(self, inputs): used_backbone_levels = len(laterals) for i in range(used_backbone_levels - 1, 0, -1): prev_shape = laterals[i - 1].shape[2:] - laterals[i - 1] += resize( + laterals[i - 1] = laterals[i - 1] + resize( laterals[i], size=prev_shape, mode='bilinear',