From 1cb215422de5d0cf0a31e204768aacdeb2289673 Mon Sep 17 00:00:00 2001 From: "rujiao.lrj" Date: Thu, 17 Nov 2022 15:48:40 +0800 Subject: [PATCH] revise format --- modelscope/pipelines/cv/ocr_utils/model_dla34.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelscope/pipelines/cv/ocr_utils/model_dla34.py b/modelscope/pipelines/cv/ocr_utils/model_dla34.py index 9f2b6396..37cbd4fe 100644 --- a/modelscope/pipelines/cv/ocr_utils/model_dla34.py +++ b/modelscope/pipelines/cv/ocr_utils/model_dla34.py @@ -636,7 +636,7 @@ class DLAUp(nn.Module): IDAUp(3, channels[j], in_channels[j:], scales[j:] // scales[j]), ) scales[j + 1:] = scales[j] - in_channels[j + 1 :] = [channels[j] for _ in channels[j + 1 :]] + in_channels[j + 1:] = [channels[j] for _ in channels[j + 1:]] def forward(self, layers): layers = list(layers)