Skip to content
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

sbb-binarize ocrd resmgr download ...: SavedModel file does not exist ... __MACOSX #363

Closed
jbarth-ubhd opened this issue Apr 13, 2023 · 2 comments

Comments

@jbarth-ubhd
Copy link

jbarth-ubhd commented Apr 13, 2023

I'm using the ocrd/all:latest converted to a singularity image,
and downloaded the models for sbb-binarize:

singularity exec --bind ~/ocrd-resources:/usr/local/share/ocrd-resources ../ocrd.sif ocrd resmgr download ocrd-sbb
►-binarize default-2021-03-09
16:22:24.826 INFO ocrd.resource_manager.download - Copying '.' from archive to /usr/local/share/ocrd-resources/
►ocrd-sbb-binarize/default-2021-03-09

16:22:25.007 INFO ocrd.cli.resmgr - Installed resource https://github.com/apacha/sbb_binarization/releases/
►download/pre-trained-models/model_2021_03_09.zip under /usr/local/sh
are/ocrd-resources/ocrd-sbb-binarize/default-2021-03-09
16:22:25.007 INFO ocrd.cli.resmgr - Use in parameters as 'default-2021-03-09'   

and then

singularity exec --bind /home/hd/hd_hd/hd_wu120/ocrd-resources:/usr/local/share/ocrd-resources -e --env-file /home
►/hd/hd_hd/hd_wu120/ocrd.env --env MAGICK_TEMPORARY_PATH=/scratch/hd_wu120_o05i15 --env TMPDIR=/scratch/
►hd_wu120_o05i15 /home/hd/hd_hd/hd_wu120/ocrd.sif ocrd-sbb-binarize -P model default-2021-03-09 -I OCR-D-IMG -O OCR
►-D-001
...
...
  File "/usr/local/lib/python3.8/site-packages/tensorflow/python/saved_model/loader_impl.py", line 116, in 
►parse_saved_model
    raise IOError(
OSError: SavedModel file does not exist at: /usr/local/share/ocrd-resources/ocrd-sbb-binarize/default-2021-03-09/
►__MACOSX//{saved_model.pbtxt|saved_model.pb}
Command exited with non-zero status 1
@bertsky
Copy link
Collaborator

bertsky commented Apr 13, 2023

Like I said, please use the models attached to the Github release of the main repo, as integrated in qurator-spk/sbb_binarization#59

@bertsky
Copy link
Collaborator

bertsky commented Jun 20, 2023

Fixed by #362

@bertsky bertsky closed this as completed Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants