Skip to content

Check model loading #113

@mikegerber

Description

@mikegerber

When giving a model/checkpoint_dir on the cmd line, ocrd_calamari seems to load it twice:

ocrd_calamari_pr112/actevedef_718448162.first-page+binarization+segmentation on  patch-3 via 🐍 v3.11.7 (ocrd_calamari_pr112) took 41s
❯ ocrd-calamari-recognize -I OCR-D-SEG-LINE-SBB -O TEST -P checkpoint_dir qurator-gt4histocr-1.0
/home/b-mg106/.pyenv/versions/3.11.7/envs/ocrd_calamari_pr112/lib/python3.11/site-packages/numpy/core/getlimits.py:542: UserWarning: Signature b'\x00\xd0\xcc\xcc\xcc\xcc\xcc\xcc\xfb\xbf\x00\x00\x00\x00\x00\x00' for <class 'numpy.longdouble'> does not match any known type: falling back to type probe function.
This warnings indicates broken support for the dtype!
  machar = _get_machar(dtype)
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None
Checkpoint version 2 is up-to-date.
None

I also tried to load an invalid checkpoint_dir, and some(!) 5 checkpoints loaded fine, so this needs a bit of investigating.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions