Skip to content

Commit f3c72c6

Browse files
authored
Fixed a few spelling errors (open-mmlab#1656)
* 修复拼写错误 * Fix lint error * Fix lint error * Fix lint error
1 parent df434be commit f3c72c6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mmseg/models/decode_heads/stdc_head.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ def losses(self, seg_logit, seg_label):
6767
boundary_targets_x4_up[
6868
boundary_targets_x4_up <= self.boundary_threshold] = 0
6969

70-
boudary_targets_pyramids = torch.stack(
70+
boundary_targets_pyramids = torch.stack(
7171
(boundary_targets, boundary_targets_x2_up, boundary_targets_x4_up),
7272
dim=1)
7373

74-
boudary_targets_pyramids = boudary_targets_pyramids.squeeze(2)
75-
boudary_targets_pyramid = F.conv2d(boudary_targets_pyramids,
76-
self.fusion_kernel)
74+
boundary_targets_pyramids = boundary_targets_pyramids.squeeze(2)
75+
boundary_targets_pyramid = F.conv2d(boundary_targets_pyramids,
76+
self.fusion_kernel)
7777

78-
boudary_targets_pyramid[
79-
boudary_targets_pyramid > self.boundary_threshold] = 1
80-
boudary_targets_pyramid[
81-
boudary_targets_pyramid <= self.boundary_threshold] = 0
78+
boundary_targets_pyramid[
79+
boundary_targets_pyramid > self.boundary_threshold] = 1
80+
boundary_targets_pyramid[
81+
boundary_targets_pyramid <= self.boundary_threshold] = 0
8282

8383
loss = super(STDCHead, self).losses(seg_logit,
84-
boudary_targets_pyramid.long())
84+
boundary_targets_pyramid.long())
8585
return loss

0 commit comments

Comments
 (0)