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

migrate to core v3 #117

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
key: v01-pydeps-<< parameters.python-image >>-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
paths:
- "~/.cache/pip"
resource_class: large

workflows:
build:
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ install:

$(MODEL):
ocrd resmgr download ocrd-calamari-recognize $@
# Workaround, see #91 https://github.com/OCR-D/ocrd_calamari/issues/91
fix-calamari1-model ~/.local/share/ocrd-resources/ocrd-calamari-recognize/$@

# Download example data (for the README)
example: $(EXAMPLE)
Expand Down Expand Up @@ -84,7 +82,7 @@ assets-clean:
# Run unit tests
test: test/assets $(MODEL)
# declare -p HTTP_PROXY
$(PYTHON) -m pytest --continue-on-collection-errors test $(PYTEST_ARGS)
$(PYTHON) -m pytest --continue-on-collection-errors --durations=0 test $(PYTEST_ARGS)

# Run unit tests and determine test coverage
coverage: test/assets $(MODEL)
Expand Down
5 changes: 0 additions & 5 deletions ocrd_calamari/config.py

This file was deleted.

8 changes: 2 additions & 6 deletions ocrd_calamari/ocrd-tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@
"recognition/text-recognition"
],
"description": "Recognize lines with Calamari",
"input_file_grp": [
"OCR-D-SEG-LINE"
],
"output_file_grp": [
"OCR-D-OCR-CALAMARI"
],
"input_file_grp_cardinality": 1,
"output_file_grp_cardinality": 1,
"parameters": {
"checkpoint_dir": {
"description": "The directory containing calamari model files (*.ckpt.json). Uses all checkpoints in that directory",
Expand Down
Loading