fix res2net200_vd
@@ -18,7 +18,6 @@ from __future__ import print_function
import math
-import paddle
import paddle.fluid as fluid
from paddle.fluid.param_attr import ParamAttr
@@ -39,7 +38,8 @@ class Res2Net_vd():
layers = self.layers
supported_layers = [50, 101, 152, 200]
assert layers in supported_layers, \
- "supported layers are {} but input layer is {}".format(supported_layers, layers)
+ "supported layers are {} but input layer is {}".format(
+ supported_layers, layers)
basic_width = self.width * self.scales
num_filters1 = [basic_width * t for t in [1, 2, 4, 8]]
num_filters2 = [256 * t for t in [1, 2, 4, 8]]
@@ -81,7 +81,7 @@ class Res2Net_vd():
pool_type='max')
for block in range(len(depth)):
for i in range(depth[block]):
- if layers in [101, 152] and block == 2:
+ if layers in [101, 152, 200] and block == 2:
if i == 0:
conv_name = "res" + str(block + 2) + "a"
else:
