Skip to content
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

Downgrading of models is not supported (5 to 2). Please upgrade your Calamari instance (currently installed: 1.0.6) #344

Open
Bhanusrimattey opened this issue Aug 22, 2023 · 5 comments

Comments

@Bhanusrimattey
Copy link

I am trying to test calamari with a test image and my calamari version is 1.0.6 here is my command

calamari-predict --checkpoint C:\Users\navya\Downloads\calamari_models-2.0\antiqua_historical\2.ckpt --files C:\Users\navya\OneDrive\Desktop\text.png

It is not working and showing error Downgrading of models is not supported (5 to 2). Please upgrade your Calamari instance (currently installed: 1.0.6). Please help

@andbue
Copy link
Member

andbue commented Aug 22, 2023

It seems like you are trying to use an old version of calamari with models made for calamari >2.0, which is not supported. Either try older models (e.g. https://github.com/Calamari-OCR/calamari_models/releases/tag/1.1) or use a more recent version of calamari.

@Bhanusrimattey
Copy link
Author

I ran this command pip install --upgrade calamari-ocr but it still not upgrading

@andbue
Copy link
Member

andbue commented Aug 22, 2023

Maybe some dependency or the python version is blocking the update?

@mikegerber
Copy link
Contributor

mikegerber commented Oct 25, 2023

Try to check python3 -m pip --version (this gives pip and Python version here). And maybe python3 -m pip install -U pip too, and then try to upgrade calamari-ocr again - wouldn't be the first time an outdated pip caused problems.

@bertsky
Copy link
Collaborator

bertsky commented Oct 2, 2024

Did you try reinstalling with updated Python / pip @Bhanusrimattey? Can we close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants