mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-09 11:49:53 +02:00
🧹 Do not advertise and support untested models
This commit is contained in:
parent
5273247ab3
commit
b8129c6425
2 changed files with 2 additions and 16 deletions
11
Makefile
11
Makefile
|
@ -11,7 +11,6 @@ help:
|
|||
@echo ""
|
||||
@echo " install Install ocrd_calamari"
|
||||
@echo " calamari Clone calamari repo"
|
||||
@echo " calamari_models Clone calamari_models repo"
|
||||
@echo " gt4histocr-calamari Get GT4HistOCR Calamari model (from SBB)"
|
||||
@echo " calamari/build pip install calamari"
|
||||
@echo " deps-test Install testing python deps via pip"
|
||||
|
@ -37,12 +36,6 @@ install:
|
|||
calamari:
|
||||
$(GIT_CLONE) https://github.com/chwick/calamari
|
||||
|
||||
# Clone calamari_models repo
|
||||
calamari_models:
|
||||
$(GIT_CLONE) -n https://github.com/chwick/calamari_models
|
||||
# Checkout latest version that works with calamari-ocr==0.3.5:
|
||||
cd calamari_models && git checkout f76b1d3ec
|
||||
|
||||
gt4histocr-calamari:
|
||||
mkdir gt4histocr-calamari
|
||||
cd gt4histocr-calamari && \
|
||||
|
@ -53,7 +46,7 @@ gt4histocr-calamari:
|
|||
|
||||
|
||||
# pip install calamari
|
||||
calamari/build: calamari calamari_models
|
||||
calamari/build: calamari
|
||||
cd calamari && $(PIP_INSTALL) .
|
||||
|
||||
|
||||
|
@ -87,7 +80,7 @@ test: test/assets gt4histocr-calamari
|
|||
$(PYTHON) -m pytest --continue-on-collection-errors test $(PYTEST_ARGS)
|
||||
|
||||
# Run unit tests and determine test coverage
|
||||
coverage: test/assets calamari_models
|
||||
coverage: test/assets gt4histocr-calamari
|
||||
coverage erase
|
||||
make test PYTHON="coverage run"
|
||||
coverage report
|
||||
|
|
|
@ -29,13 +29,6 @@ pip install .
|
|||
|
||||
## Install models
|
||||
|
||||
Download standard models:
|
||||
|
||||
```
|
||||
wget https://github.com/Calamari-OCR/calamari_models/archive/master.zip
|
||||
unzip master.zip
|
||||
```
|
||||
|
||||
Download models trained on GT4HistOCR data:
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue