liuhongen1234567 8 місяців тому
батько
коміт
bc29335614

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

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