瀏覽代碼

fix formula pipe (#3643)

liuhongen1234567 8 月之前
父節點
當前提交
bc29335614
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      paddlex/inference/pipelines/formula_recognition/pipeline.py

+ 0 - 1
paddlex/inference/pipelines/formula_recognition/pipeline.py

@@ -75,7 +75,6 @@ class FormulaRecognitionPipeline(BasePipeline):
                 "LayoutDetection",
                 {"model_config_error": "config error for layout_det_model!"},
             )
-            self.layout_det_model = self.create_model(layout_det_config)
             layout_kwargs = {}
             if (threshold := layout_det_config.get("threshold", None)) is not None:
                 layout_kwargs["threshold"] = threshold