mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-06 14:39:55 +02:00
makefile forgot the OCR models
This commit is contained in:
parent
f3f5426597
commit
b4d460ca79
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -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
|
||||
|
||||
OCR_MODEL := https://zenodo.org/records/17194824/files/models_ocr_v0_5_0.tar.gz?download=1
|
||||
|
||||
PYTEST_ARGS ?= -vv
|
||||
|
||||
# BEGIN-EVAL makefile-parser --make-help Makefile
|
||||
|
@ -46,7 +48,7 @@ help:
|
|||
|
||||
|
||||
# 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
|
||||
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:
|
||||
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))
|
||||
unzip $(notdir $(BIN_MODEL))
|
||||
mkdir $@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue