mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
delete unnecessary lines of STDCHead (#1231)
This commit is contained in:
parent
622f28eea3
commit
02d2790145
@ -68,7 +68,7 @@ model = dict(
|
||||
in_index=0,
|
||||
norm_cfg=norm_cfg,
|
||||
concat_input=False,
|
||||
align_corners=False,
|
||||
align_corners=True,
|
||||
loss_decode=[
|
||||
dict(
|
||||
type='CrossEntropyLoss',
|
||||
|
@ -80,11 +80,6 @@ class STDCHead(FCNHead):
|
||||
boudary_targets_pyramid[
|
||||
boudary_targets_pyramid <= self.boundary_threshold] = 0
|
||||
|
||||
seg_logit = F.interpolate(
|
||||
seg_logit,
|
||||
boundary_targets.shape[2:],
|
||||
mode='bilinear',
|
||||
align_corners=True)
|
||||
loss = super(STDCHead, self).losses(seg_logit,
|
||||
boudary_targets_pyramid.long())
|
||||
return loss
|
||||
|
Loading…
x
Reference in New Issue
Block a user