Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Tesseract Locks Up when Multiple Programs Attempt to Process #984
Running two or more programs which all attempt to process images with Tesseract seems to lock up all programs indefinitely.
Running two or more programs involving Tesseract would not block all programs from executing.
I don't actually know enough about the codebase itself to to suggest a fix, but would be interested in more information or a workaround.
This actually has nothing to do with training though, just evaluation with the LSTM. I'm running on an Ubuntu 16 VM which has 16GB RAM from the host and 4 cores, so I doubt it has anything to do with the hardware. I'll try the latest code and see what happens
The problems which we observed with training also exist for the tesseract ocr process. It uses multithreading causing a significant overhead for thread synchronisation. Your 4 cores will be sufficient for a single tesseract process, but if you run more than one, the effects which you have seen are not surprising.
Disabling OpenMP and the related multithreading would help for your case. Use