OCR-D / ocrd_calamari

Recognize text using Calamari OCR and the OCR-D framework
Apache License 2.0
13 stars 6 forks source link

Exception: Invalid parameters #99

Closed mikegerber closed 1 year ago

mikegerber commented 1 year ago

While running pytest:

======================================= short test summary info =======================================
FAILED test/test_recognize.py::test_recognize - Exception: Invalid parameters ["[checkpoint_dir] None is not of type 'string'"]
FAILED test/test_recognize.py::test_recognize_should_warn_if_given_rgb_image_and_single_channel_model - Exception: Invalid parameters ["[checkpoint_dir] None is not of type 'string'"]
FAILED test/test_recognize.py::test_word_segmentation - Exception: Invalid parameters ["[checkpoint_dir] None is not of type 'string'"]
FAILED test/test_recognize.py::test_glyphs - Exception: Invalid parameters ["[checkpoint_dir] None is not of type 'string'"]
================================== 4 failed, 102 warnings in 38.72s ===================================

I don't understand this. Local tests fail like this, the CircleCI tests run fine, does not seem to be probem with the current version of ocrd.

mikegerber commented 1 year ago

Locally:

CircleCI also uses make coverage.

Hmm.

mikegerber commented 1 year ago

I tested if it's pyenv, but it's also broken without pyenv and the system Python 3.9.

mikegerber commented 1 year ago

Oh, it's just that wie now get the model name from os.getenv("MODEL") and that isn't set normally, but in the Makefile...