提交 b7ac5630 编写于 作者: M michaelowenliu

fix indent typo and remove used variable

上级 6ca975c1
...@@ -23,7 +23,7 @@ from paddleseg.models.common import layer_libs ...@@ -23,7 +23,7 @@ from paddleseg.models.common import layer_libs
class ASPPModule(nn.Layer): class ASPPModule(nn.Layer):
""" """
Atrous Spatial Pyramid Pooling Atrous Spatial Pyramid Pooling
Args: Args:
aspp_ratios (tuple): the dilation rate using in ASSP module. aspp_ratios (tuple): the dilation rate using in ASSP module.
...@@ -156,7 +156,6 @@ class PPModule(nn.Layer): ...@@ -156,7 +156,6 @@ class PPModule(nn.Layer):
def forward(self, input): def forward(self, input):
cat_layers = [] cat_layers = []
for i, stage in enumerate(self.stages): for i, stage in enumerate(self.stages):
size = self.bin_sizes[i]
x = stage(input) x = stage(input)
x = F.resize_bilinear(x, out_shape=input.shape[2:]) x = F.resize_bilinear(x, out_shape=input.shape[2:])
cat_layers.append(x) cat_layers.append(x)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册