From 2cc7dcd5e35150072e2afd9ee07a3223ff59510b Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 12 Apr 2026 23:19:22 +0200 Subject: [PATCH] perf(ocr): increase batch sizes (detector=4, recognition=8) 5GB free on host during OCR, container at 3.8/8GB. Larger batches use more memory but process faster on CPU. Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d53033d4..7eb50ef8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: "4" - DETECTOR_BATCH_SIZE: "2" + RECOGNITION_BATCH_SIZE: "8" + DETECTOR_BATCH_SIZE: "4" networks: - archive-net healthcheck: