Closed kba closed 1 year ago
PS: ocrd.sif is from docker 2022-08-15
@jbarth-ubhd I cannot reproduce with numpy 1.21 up to 1.24. The log archive linked above (aa.zip) yields a 403. Could you please assist?
Otherwise, if this only applied to numpy 1.19 – can we close?
Oops. Wrong permissions. Now downloadable.
Tested with ocrd/all:latest → this bug is fixed.
Now:
File "/usr/local/lib/python3.8/site-packages/sbb_binarize/sbb_binarize.py", line 40, in __init__
raise ValueError(f"No models found in {self.model_dir}")
ValueError: No models found in /home/hd/hd_hd/hd_wu120/ocrd_models/sbb-binarize/models/model_bin_sbb_ens.h5
Command exited with non-zero status 1
[hd_wu120@o05i15 aa]$ md5sum /home/hd/hd_hd/hd_wu120/ocrd_models/sbb-binarize/models/model_bin_sbb_ens.h5
bad4dddb8db72bd06fed67c6117e67b7 /home/hd/hd_hd/hd_wu120/ocrd_models/sbb-binarize/models/model_bin_sbb_ens.h5
Ok the md5sum of the model begins with "bad...", this is self-explaining
Now:
can you please state the command that you have used, ideally also how you deployed your models?
The models from here https://qurator-data.de/sbb_binarization/ do not work ; had to use https://github.com/apacha/sbb_binarization/releases/download/pre-trained-models/model_2020_01_16.zip instead ← ocrd resmgr list-available
.
Better yet: use the models attached to the latest release on the main repo. See also #59.
So everything is working for you now?
Yes, the bug TypeError: 'int' object is not subscriptable
is gone.
Should be fine thanks to @bertsky fixes in https://github.com/qurator-spk/sbb_binarization/pull/59 which include the clean SavedModel, closing here.
@jbarth-ubhd in https://github.com/OCR-D/ocrd_all/issues/348
@bertsky:
@jbarth-ubhd: