-
Notifications
You must be signed in to change notification settings - Fork 211
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
UnknownArgumentError #346
Comments
Have a look at the docs: https://calamari-ocr.readthedocs.io/en/latest/doc.command-line-usage.html#example-usage |
I tried that too but that gives an error with the attribute 'int' in numpy event though my numpy version is 1.26.0 and this error should not occur for this version of numpy, correct? Error: |
Is there some more context in the error message you get? I'm not sure where np.int is accessed from. |
This is the entire error that I am getting and I have no idea why it is accessing np.int: D:\PyCharmProjects\calamariOCR> calamari-predict --checkpoint D:\PyCharmProjects\calamariOCR\calamari_models-2.0\calamari_models-2.0\antiqua_historical\2.ckpt --data.images C:\Users\Sam\Downloads\test_image4.jpg |
Thanks for reporting this! It seems that tfaip for some reason uses np.int. Until we fork tfaip and change it there, we need numpy version < 1.24. |
Is there any requirement for open-cv version?Even On using numpy 1.21, I am still getting another error "numpy._DTypeMeta' object is not subscriptable": Error: CRITICAL 2023-09-22 16:56:27,171 tfaip.util.logging: Uncaught exception |
I guess there are some version requirements between opencv-python-headless and numpy. Did you start with a clean venv or did you install some packages manually? |
Should be solved in 2.3 – can you please try again @saumya750? |
I am trying to test calamari with my calamari version being 2.2.2 and the below command:
calamari-predict --checkpoint D:\calamariOCR\calamari_models-2.0\calamari_models-2.0\antiqua_historical\2.ckpt --files C:\Users\Sam\Downloads\test_image4.jpg
I am getting below error:
File "d:\pycharmprojects\calamariocr\virtualenv\lib\site-packages\paiargparse\main_parser.py", line 93, in parse_args
raise UnknownArgumentError(f"Unknown Arguments {' '.join(argv)}. Possible alternatives:{''.join(help_str)}")
paiargparse.dataclass_parser.UnknownArgumentError: Unknown Arguments --files C:\Users\Sam\Downloads\test_image4.jpg. Possible alternatives:
--files ==> --voter, --data, --verbose
Please help.
The text was updated successfully, but these errors were encountered: