Skip to content

Commit 02d2790

Browse files
authored
delete unnecessary lines of STDCHead (open-mmlab#1231)
1 parent 622f28e commit 02d2790

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

configs/_base_/models/stdc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
in_index=0,
6969
norm_cfg=norm_cfg,
7070
concat_input=False,
71-
align_corners=False,
71+
align_corners=True,
7272
loss_decode=[
7373
dict(
7474
type='CrossEntropyLoss',

mmseg/models/decode_heads/stdc_head.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ def losses(self, seg_logit, seg_label):
8080
boudary_targets_pyramid[
8181
boudary_targets_pyramid <= self.boundary_threshold] = 0
8282

83-
seg_logit = F.interpolate(
84-
seg_logit,
85-
boundary_targets.shape[2:],
86-
mode='bilinear',
87-
align_corners=True)
8883
loss = super(STDCHead, self).losses(seg_logit,
8984
boudary_targets_pyramid.long())
9085
return loss

0 commit comments

Comments
 (0)