diff --git a/ppocr/modeling/backbones/rec_resnet_fpn.py b/ppocr/modeling/backbones/rec_resnet_fpn.py index 0a05b5def8b79943f045d9cc941835cddc82bfdb..066cba49ce531412491832ebaa2ba4dfccdc2637 100755 --- a/ppocr/modeling/backbones/rec_resnet_fpn.py +++ b/ppocr/modeling/backbones/rec_resnet_fpn.py @@ -100,11 +100,11 @@ 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) - + print("F:", F) base = F[-1] for i in [-2, -3]: b, c, w, h = F[i].shape