Different model for Det and Rec possible? #14321
Replies: 1 comment
-
Yes, you can use different models for text detection and recognition in PaddleOCR simultaneously. You can specify separate paths for your fine-tuned detection and recognition models when initializing the from paddleocr import PaddleOCR
ocr_model = PaddleOCR(
use_angle_cls=True,
det_model_dir='path_to_your_fine_tuned_detection_model',
rec_model_dir='path_to_your_fine_tuned_recognition_model',
lang='your_language_code',
show_log=False
) In this setup, you can replace Response generated by 🤖 feifei-bot | gpt-4o |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm currently using fine tuned rec models but now i see that some of the texts are not even detected.
So I trained a new detection model but I wonder if I can use the fine tuned detection model AND the recognition model at the same time. see below:
ocr_model = PaddleOCR(use_angle_cls=True, det_model_dir=det_path, rec_model_dir = path, lang=lang, show_log=False)
Beta Was this translation helpful? Give feedback.
All reactions