Replies: 1 comment
-
Currently, PaddleOCR does not have a built-in Early Stopping feature in the base code, including for PPOCRv4. The official documentation and discussions do not indicate any direct implementation for early stopping, such as monitoring metrics (e.g., validation loss or accuracy) to halt training automatically when improvements plateau. How to Add Early Stopping: To implement early stopping, you would need to modify the training loop manually. Here’s a general outline of how you can do it:
Config File: Reference: Summary:
If you need more guidance or a specific implementation example for PPOCRv4, let me know your exact training setup, and I can help with a more tailored code snippet. Response generated by 🤖 feifei-bot | gpt-4.1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for the great repo.
I wanted to ask if there's any feature available to earlystop the training based on monitoring any particular metric?
Please help how to add that in the config.
I am trying to fine-tune PPOCRv4 on my dataset by i couldn't find any implementation of early stopping in the base code of the repo. Please direct me to the particular code where it is implemented.
Beta Was this translation helpful? Give feedback.
All reactions