From 63fb8ff599035186aba2d958fbaec32739e92d01 Mon Sep 17 00:00:00 2001 From: Georg Heiler Date: Mon, 18 Aug 2025 13:54:02 +0200 Subject: [PATCH] chore: autoformat DCO Remediation Commit for Georg Heiler I, Georg Heiler , hereby add my Signed-off-by to this commit: 5815c8f81b0e5ce400332597b6795e5a97ecf775 --- docling/models/rapid_ocr_model.py | 5 +---- docs/examples/rapidocr_with_custom_models.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docling/models/rapid_ocr_model.py b/docling/models/rapid_ocr_model.py index 08e82428..ed4835b1 100644 --- a/docling/models/rapid_ocr_model.py +++ b/docling/models/rapid_ocr_model.py @@ -59,20 +59,17 @@ class RapidOcrModel(BaseOcrModel): params={ # Global settings (these are still correct) "Global.text_score": self.options.text_score, - #"Global.verbose": self.options.print_verbose, - + # "Global.verbose": self.options.print_verbose, # Detection model settings "Det.model_path": self.options.det_model_path, "Det.use_cuda": use_cuda, "Det.use_dml": use_dml, "Det.intra_op_num_threads": intra_op_num_threads, - # Classification model settings "Cls.model_path": self.options.cls_model_path, "Cls.use_cuda": use_cuda, "Cls.use_dml": use_dml, "Cls.intra_op_num_threads": intra_op_num_threads, - # Recognition model settings "Rec.model_path": self.options.rec_model_path, "Rec.keys_path": self.options.rec_keys_path, diff --git a/docs/examples/rapidocr_with_custom_models.py b/docs/examples/rapidocr_with_custom_models.py index db2d8874..679a83b5 100644 --- a/docs/examples/rapidocr_with_custom_models.py +++ b/docs/examples/rapidocr_with_custom_models.py @@ -21,7 +21,7 @@ def main(): # Setup RapidOcrOptions for english detection det_model_path = os.path.join( - download_path, "onnx", "PP-OCRv4","det", "en_PP-OCRv3_det_infer.onnx" + download_path, "onnx", "PP-OCRv4", "det", "en_PP-OCRv3_det_infer.onnx" ) rec_model_path = os.path.join( download_path, "onnx", "PP-OCRv5", "rec", "ch_PP-OCRv5_rec_server_infer.onnx"