diff --git a/ppocr/modeling/backbones/rec_mv1_enhance.py b/ppocr/modeling/backbones/rec_mv1_enhance.py index fe874fac1af439bfb47ba9050a61f02db302e224..a5261945b23d4889cdd4522fe5b2f007d206a8c8 100644 --- a/ppocr/modeling/backbones/rec_mv1_enhance.py +++ b/ppocr/modeling/backbones/rec_mv1_enhance.py @@ -16,26 +16,17 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -import numpy as np -import paddle -from paddle import ParamAttr -import paddle.nn as nn -import paddle.nn.functional as F -from paddle.nn import Conv2D, BatchNorm, Linear, Dropout -from paddle.nn import AdaptiveAvgPool2D, MaxPool2D, AvgPool2D -from paddle.nn.initializer import KaimingNormal import math import numpy as np import paddle -from paddle import ParamAttr, reshape, transpose, concat, split +from paddle import ParamAttr, reshape, transpose import paddle.nn as nn import paddle.nn.functional as F from paddle.nn import Conv2D, BatchNorm, Linear, Dropout from paddle.nn import AdaptiveAvgPool2D, MaxPool2D, AvgPool2D from paddle.nn.initializer import KaimingNormal -import math -from paddle.nn.functional import hardswish, hardsigmoid from paddle.regularizer import L2Decay +from paddle.nn.functional import hardswish, hardsigmoid class ConvBNLayer(nn.Layer):