-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isolate pip with venv semaphores #287
Conversation
Remaining CI failure seems to be only the stdout timeout for |
No idea why that update does not take effect in PRs immediately. (Anyway – should work, PR is ready to be merged AFAICS.) |
This does not update the modules themselves, so we need not run release.sh – can I merge this, @kba? |
CI failure: bad news – new upstream inconsistencies …
This came from ocrd_pc_segmentation – I suggest we try to fix that upstream. |
Strange. ocr4all-pixel-classifier requirements does not even allow TF 2.6 – it requries <=2.5. And no restriction on scikit-image. But somehow that ends up in the above combination. It has to do with the mysterious @chreul @maxnth @chaddy314 could you please assist? |
@bertsky I just contacted the original author of the pixel-classifier and he's looking into fixing it upstream. Edit: Just for the sake of clarification: the ocr4all-pixel-classifier isn't written or maintained by the OCR4all team. |
The problem seems to be, that I've added |
Indeed. Which will likely cause further conflicts as more packages are needed in the same venv. Could anything be done on the TF version front? What was the reason for TF<=2.5 in the first place? (I have recently seen that the HDF5 model format quickly becomes incompatible with other minor releases of Python, because the custom layer code is serialised via marshal format. The better alternative is TF's SavedModel format, which is basically a directory with Protobuf file and some resource files. Conversion is as simple as an interactive load+save. Would that help to make ocr4all-pixel-classifier models run on the newer versions?
Thanks @crater2150 – that helped! |
I think, 2.5 was the most recent TF version, when that line was added, it simply hasn't been tested with newer versions. I haven't had any problems with the HDF5 models between TF 2.0 and 2.5, so I'd say chances are good a newer TF version will just work. There isn't anyone actively developing the pixel classifier anymore, so larger changes to the codebase probably won't happen from our side. |
Pursuant to #286, try using the same mechanism we already use for
git
to bring about isolation forpip
as well – but allow different venvs to be modified concurrently.Also contains an attempt at speeding up build by replacing the costly re-pip trick (forcing reinstallation to ensure up-to-date timestamps) with just direct timestamp update (but for the targets only).