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
Prediction API Error #270
Comments
This might be related to Tensorflow. Can you post your Tensorflow and h5py version? (tensorflow should be >= 2.3.0) I guess there is a mismatch. |
I am using docker to build the model with only |
I just setup a fresh venv (current calamari master) with python 3.8:
I had not problems loading your provided model using the predict script ( |
Yup.... but I am installing only
|
Dockerfile
|
I guess the pip version is outdated (<21.x). Older pip version do not resolve version conflicts automatically, which is why a newer Please try to insert a
in your Dockerfile before you install calamari-ocr. |
Thanks a lot @ChWick Its working with However, keeping predictor alive is running into error:
If you are Ok for an example, I can put out a small example to train on |
oups, this is is a typo in the docs. Should be:
|
|
Ah, this particular interface is rather new and not yet included in the current pip-release, its only in the master and will be included in the next release. |
I can draft a quick minor release if you rely on this feature, though! Just let me know |
I hope there is not much difference between two methods, for now I am good with the working version. It would be good to have in pip version in general :) if it is not much of a work. Thanks again. |
I used
cli
to train onSROIE2019
dataset (original images are preprocessed into line images) with :Training went smooth and the logs are
train.log
After the training process, I am trying to load the model as mentioned here, however I get following error:
I tried loading pretrainined model from
antiqua_historical
, and again I got the same error:The text was updated successfully, but these errors were encountered: