diff --git a/ppocr/modeling/backbones/rec_resnet_fpn.py b/ppocr/modeling/backbones/rec_resnet_fpn.py index 0a05b5def8b79943f045d9cc941835cddc82bfdb..fb887ce1b427bd982057f53c88c46d82ac51678a 100755 --- a/ppocr/modeling/backbones/rec_resnet_fpn.py +++ b/ppocr/modeling/backbones/rec_resnet_fpn.py @@ -100,11 +100,10 @@ class ResNet(): conv = self.basic_block( input=conv, num_filters=num_filters[block], - stride=stride, - if_first=block == i == 0, + stride=stride_list[block] if i == 0 else 1, + is_first=block == i == 0, name=conv_name) F.append(conv) - base = F[-1] for i in [-2, -3]: b, c, w, h = F[i].shape