-
I just finished training a text-recognition with SVTR recognition model for custom dataset, dict. But when i try to load into python with PaddleOCR(...) from paddleocr module, the prediction now is very bad, in my case its repeatly output one of the character in the dict despite the image quality is ok. And when i try to change to rec_algorithm of PaddleOCR to SVTR, it throw an error: only supports CRNN, SVTR_LCNet. I did check the params for this loader function but changing most of them to fit my model did not help. How do i fix this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Currently paddleocr doesn‘t support the svtr algorithm, and the prediction results will be wrong due to different preprocessing methods. You can try adding SVTR support in paddleocr.
|
Beta Was this translation helpful? Give feedback.
Currently paddleocr doesn‘t support the svtr algorithm, and the prediction results will be wrong due to different preprocessing methods. You can try adding SVTR support in paddleocr.
add 'SVTR' in SUPPORT_REC_MODEL
PaddleOCR/paddleocr.py
Line 51 in 274c216
rebuild paddleocr