How to optimize images #15970
-
By default ppocrv5_server_rec model has rec_img_shape as [3,48,320], can I change it to [3,48,640]? What settings for rec_img_shape does the pre-generated model support? |
Beta Was this translation helpful? Give feedback.
Answered by
liuhongen1234567
Jul 8, 2025
Replies: 1 comment 1 reply
-
Hello, the parameters can be changed to [3,48,640], but during training with ppocrv5_server_rec, the scaling ranges between [[320, 32], [320, 48], [320, 64]]. Changing it to 640 may affect the final recognition accuracy. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tvone
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, the parameters can be changed to [3,48,640], but during training with ppocrv5_server_rec, the scaling ranges between [[320, 32], [320, 48], [320, 64]]. Changing it to 640 may affect the final recognition accuracy.
The configuration file for ppocrv5_server_rec is as follows:
PaddleOCR/configs/rec/PP-OCRv5/PP-OCRv5_server_rec.yml
Line 101 in b34d8fa