From f3c72c6dbb9b5d9f382a06d1bdf6d59f1a83e6ee Mon Sep 17 00:00:00 2001 From: rotorliu Date: Tue, 14 Jun 2022 12:10:59 +0800 Subject: [PATCH] Fixed a few spelling errors (#1656) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复拼写错误 * Fix lint error * Fix lint error * Fix lint error --- mmseg/models/decode_heads/stdc_head.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mmseg/models/decode_heads/stdc_head.py b/mmseg/models/decode_heads/stdc_head.py index 1cf3732ce..bddf1eb47 100644 --- a/mmseg/models/decode_heads/stdc_head.py +++ b/mmseg/models/decode_heads/stdc_head.py @@ -67,19 +67,19 @@ class STDCHead(FCNHead): boundary_targets_x4_up[ boundary_targets_x4_up <= self.boundary_threshold] = 0 - boudary_targets_pyramids = torch.stack( + boundary_targets_pyramids = torch.stack( (boundary_targets, boundary_targets_x2_up, boundary_targets_x4_up), dim=1) - boudary_targets_pyramids = boudary_targets_pyramids.squeeze(2) - boudary_targets_pyramid = F.conv2d(boudary_targets_pyramids, - self.fusion_kernel) + boundary_targets_pyramids = boundary_targets_pyramids.squeeze(2) + boundary_targets_pyramid = F.conv2d(boundary_targets_pyramids, + self.fusion_kernel) - boudary_targets_pyramid[ - boudary_targets_pyramid > self.boundary_threshold] = 1 - boudary_targets_pyramid[ - boudary_targets_pyramid <= self.boundary_threshold] = 0 + boundary_targets_pyramid[ + boundary_targets_pyramid > self.boundary_threshold] = 1 + boundary_targets_pyramid[ + boundary_targets_pyramid <= self.boundary_threshold] = 0 loss = super(STDCHead, self).losses(seg_logit, - boudary_targets_pyramid.long()) + boundary_targets_pyramid.long()) return loss