makefile forgot the OCR models

This commit is contained in:
kba 2025-09-25 22:16:38 +02:00
parent f3f5426597
commit b4d460ca79

View file

@ -16,6 +16,8 @@ SEG_MODEL := https://zenodo.org/records/17194824/files/models_layout_v0_5_0.tar.
BIN_MODEL := https://github.com/qurator-spk/sbb_binarization/releases/download/v0.0.11/saved_model_2021_03_09.zip BIN_MODEL := https://github.com/qurator-spk/sbb_binarization/releases/download/v0.0.11/saved_model_2021_03_09.zip
OCR_MODEL := https://zenodo.org/records/17194824/files/models_ocr_v0_5_0.tar.gz?download=1
PYTEST_ARGS ?= -vv PYTEST_ARGS ?= -vv
# BEGIN-EVAL makefile-parser --make-help Makefile # BEGIN-EVAL makefile-parser --make-help Makefile
@ -46,7 +48,7 @@ help:
# Download and extract models to $(PWD)/models_layout_v0_5_0 # Download and extract models to $(PWD)/models_layout_v0_5_0
models: models_layout_v0_5_0 default-2021-03-09 models: models_layout_v0_5_0 models_ocr_v0_5_0 default-2021-03-09
models_layout_v0_5_0: models_layout_v0_5_0.tar.gz models_layout_v0_5_0: models_layout_v0_5_0.tar.gz
tar zxf models_layout_v0_5_0.tar.gz tar zxf models_layout_v0_5_0.tar.gz
@ -54,6 +56,12 @@ models_layout_v0_5_0: models_layout_v0_5_0.tar.gz
models_layout_v0_5_0.tar.gz: models_layout_v0_5_0.tar.gz:
wget -O $@ $(SEG_MODEL) wget -O $@ $(SEG_MODEL)
models_ocr_v0_5_0: models_ocr_v0_5_0.tar.gz
tar zxf models_ocr_v0_5_0.tar.gz
models_ocr_v0_5_0.tar.gz:
wget -O $@ $(OCR_MODEL)
default-2021-03-09: $(notdir $(BIN_MODEL)) default-2021-03-09: $(notdir $(BIN_MODEL))
unzip $(notdir $(BIN_MODEL)) unzip $(notdir $(BIN_MODEL))
mkdir $@ mkdir $@