fix(ocr): increase to 8g mem_limit and larger batch sizes
Some checks failed
CI / Unit & Component Tests (push) Failing after 1s
CI / Backend Unit Tests (push) Failing after 2s
CI / Unit & Component Tests (pull_request) Failing after 2s
CI / Backend Unit Tests (pull_request) Failing after 0s

5GB free on host while OCR runs — give the container more room.
Bump batch sizes (detector=2, recognition=4) so it processes
faster with the available memory.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-12 22:35:34 +02:00
parent e9cf2998fe
commit 741979304c

View File

@@ -78,7 +78,7 @@ services:
dockerfile: Dockerfile
container_name: archive-ocr
restart: unless-stopped
mem_limit: 4g
mem_limit: 8g
memswap_limit: 8g
volumes:
- ocr_models:/app/models
@@ -86,8 +86,8 @@ services:
KRAKEN_MODEL_PATH: /app/models/german_kurrent.mlmodel
OCR_CONFIDENCE_THRESHOLD: "0.3"
OCR_CONFIDENCE_THRESHOLD_KURRENT: "0.5"
RECOGNITION_BATCH_SIZE: "1"
DETECTOR_BATCH_SIZE: "1"
RECOGNITION_BATCH_SIZE: "4"
DETECTOR_BATCH_SIZE: "2"
networks:
- archive-net
healthcheck: