diff --git a/ppcls/modeling/architectures/distillation_models.py b/ppcls/modeling/architectures/distillation_models.py index 5ef3b32cb6a3413bdce4e20f24e10761b2485837..55d165dcd8d67018865699b7d06715f071ea493d 100644 --- a/ppcls/modeling/architectures/distillation_models.py +++ b/ppcls/modeling/architectures/distillation_models.py @@ -50,7 +50,7 @@ class ResNet50_vd_distill_MobileNetV3_large_x1_0(nn.Layer): class ResNeXt101_32x16d_wsl_distill_ResNet50_vd(nn.Layer): def __init__(self, class_dim=1000, **args): - super(ResNet50_vd_distill_MobileNetV3_large_x1_0, self).__init__() + super(ResNeXt101_32x16d_wsl_distill_ResNet50_vd, self).__init__() self.teacher = ResNeXt101_32x16d_wsl(class_dim=class_dim, **args) @@ -62,4 +62,4 @@ class ResNeXt101_32x16d_wsl_distill_ResNet50_vd(nn.Layer): student_label = self.student(input) - return teacher_label, student_label \ No newline at end of file + return teacher_label, student_label diff --git a/ppcls/modeling/architectures/res2net.py b/ppcls/modeling/architectures/res2net.py index 1949262aff5c34999e3234bb992edc2d9309fac6..4980e34af97ee55b5f18e15c3f0ed5f0670183d3 100644 --- a/ppcls/modeling/architectures/res2net.py +++ b/ppcls/modeling/architectures/res2net.py @@ -247,11 +247,6 @@ def Res2Net50_14w_8s(**args): return model -def Res2Net50_48w_2s(**args): - model = Res2Net(layers=50, scales=2, width=48, **args) - return model - - def Res2Net50_26w_6s(**args): model = Res2Net(layers=50, scales=6, width=26, **args) return model diff --git a/ppcls/modeling/architectures/res2net_vd.py b/ppcls/modeling/architectures/res2net_vd.py index e4ffb77353a22f47da3b01726292eadbd98ebbda..9961d520f4544126e94f925654a3d4a0b9e686ee 100644 --- a/ppcls/modeling/architectures/res2net_vd.py +++ b/ppcls/modeling/architectures/res2net_vd.py @@ -270,11 +270,6 @@ def Res2Net50_vd_14w_8s(**args): return model -def Res2Net50_vd_48w_2s(**args): - model = Res2Net_vd(layers=50, scales=2, width=48, **args) - return model - - def Res2Net50_vd_26w_6s(**args): model = Res2Net_vd(layers=50, scales=6, width=26, **args) return model diff --git a/ppcls/modeling/architectures/resnest.py b/ppcls/modeling/architectures/resnest.py index 0875c06a9b948f6597f616a522d34c508bbdb992..4eeefddf44cc1ca89ed896e9556f191a13470b4c 100644 --- a/ppcls/modeling/architectures/resnest.py +++ b/ppcls/modeling/architectures/resnest.py @@ -242,7 +242,7 @@ class BottleneckBlock(nn.Layer): num_filters=group_width, filter_size=3, stride=1, - dilation=dialtion, + dilation=dilation, groups=cardinality, act="relu", name=name + "_conv2")