From 293e85bc6dcbbe73a3dcf943d0d468ab3e36f86f Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Tue, 26 Apr 2022 19:49:08 +0800 Subject: [PATCH] fix export --- ppocr/modeling/necks/db_fpn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppocr/modeling/necks/db_fpn.py b/ppocr/modeling/necks/db_fpn.py index f930bb5c..07a7dc28 100644 --- a/ppocr/modeling/necks/db_fpn.py +++ b/ppocr/modeling/necks/db_fpn.py @@ -144,8 +144,8 @@ class CAFPN(nn.Layer): def __init__(self, in_channels, out_channels, shortcut=True, **kwargs): super(CAFPN, self).__init__() self.out_channels = out_channels - self.ins_conv = [] - self.inp_conv = [] + self.ins_conv = nn.LayerList() + self.inp_conv = nn.LayerList() for i in range(len(in_channels)): self.ins_conv.append( -- GitLab