Skip to content
Snippets Groups Projects
Commit 5835682b authored by Michelle Weidling's avatar Michelle Weidling :blowfish:
Browse files

feat: add Makefile for easier usage

parent cd56a2ae
No related branches found
No related tags found
1 merge request!1Merge GitHub's state
Makefile 0 → 100644
build:
docker compose build
start:
docker compose run -d app
prepare-default-gt:
docker compose exec app bash scripts/prepare.sh
run:
docker compose exec app bash workflows/execute_workflows.sh > logs/run_$$(date +"%s").log
stop:
CONTAINER_ID=$$(docker ps | grep quiver | cut -d' ' -f1); docker container stop $$CONTAINER_ID && docker container remove $$CONTAINER_ID
\ No newline at end of file
......@@ -10,6 +10,7 @@ QuiVer Benchmarks is based on `ocrd/all:maximum` and has all OCR-D processors at
- Docker >= 23.0.0
- [Docker Compose plugin](https://docs.docker.com/compose/install/linux/#install-using-the-repository)
- make
To speed up QuiVer Benchmarks you can mount already downloaded text recognition models to `/usr/local/share/ocrd-resources/` in `docker-compose.yml` by adding
......@@ -24,11 +25,12 @@ Otherwise, the tool will download all `ocrd-tesserocr-recognize` models as well
- clone this repository and switch to the cloned directory
- (optional) [customize](#custom-workflows-and-data) QuiVer Benchmarks according to your needs
- build the image with `docker compose build`
- spin up a container with `docker compose run -d app`
- run `docker compose exec app bash scripts/prepare.sh`
- run `docker compose exec app bash workflows/execute_workflows.sh`
- build the image with `make build`
- spin up a container with `make start`
- run `make prepare-default-gt`
- run `make run`
- the benchmarks and the evaluation results will be available at `data/workflows.json` on your host system
- when finished, run `make stop` to shut down and remove the Docker container you created previously
## Benchmarks Considered
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment