OCR-D / ocrd_calamari

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

-P checkpoint_dir does not seem to work #69

Closed mikegerber closed 3 years ago

mikegerber commented 3 years ago
ocrd-calamari-recognize -P checkpoint_dir qurator-gt4histocr-1.0 -I OCR-D-SEG-LINE-SBB -O OCR-D-OCR-CALA                                                                                                                                                                 

with a model in qurator-gt4histocr-1.0 does not seem to work:

resolve_resource - Could not find resource 'qurator-gt4histocr-1.0' for executable 'ocrd-calamari-recognize'. Try 'ocrd resmgr download ocrd-calamari-recognize qurator-gt4histocr-1.0' to download this resource.

I had some confusion due to the bevahior of resolve_resource (https://github.com/OCR-D/core/issues/727) so I have to test this again if this is indeed the case.

kba commented 3 years ago

It works for me but I use the standard location (~/.local/share/ocrd-resources/ocrd-calamari-recognize).

Where is the model stored? And is it perhaps an empty directory or a symlink or is there something else wrong with the data (incomplete extraction/download perhaps)?

mikegerber commented 3 years ago

Nevermind, it seems to work, probably just some confusion due to https://github.com/OCR-D/core/issues/727