OCR-D / ocrd_all

Master repository which includes most other OCR-D repositories as submodules
MIT License
72 stars 17 forks source link

Docker fix tesseract module location #380

Closed bertsky closed 1 year ago

bertsky commented 1 year ago

fixes #378

bertsky commented 1 year ago

CI: see here.

(Still unclear why regular CircleCI does not test PRs. Perhaps we should remove the branch filter?)

Ready for review!

MehmedGIT commented 1 year ago

Unfortunately, I cannot confirm that this works...

SIF_PATH="/scratch1/users/${USER}/ocrd_all_maximum_image.sif"
OCRD_MODELS_DIR="/scratch1/users/${USER}/ocrd_models"
OCRD_MODELS_DIR_IN_DOCKER="/models"

singularity exec --bind "${OCRD_MODELS_DIR}:${OCRD_MODELS_DIR_IN_DOCKER}" "${SIF_PATH}" ocrd resmgr download ocrd-tesserocr-recognize '*'

Does not work. However, if I do it the old way I used to with OCRD_MODELS_DIR_IN_DOCKER="/usr/local/share" then it works but effectively overwrites that path which leads to other issues such as https://github.com/OCR-D/ocrd_olena/issues/87