fix(ocr): increase to 8g mem_limit and larger batch sizes
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:
@@ -78,7 +78,7 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: archive-ocr
|
container_name: archive-ocr
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
mem_limit: 4g
|
mem_limit: 8g
|
||||||
memswap_limit: 8g
|
memswap_limit: 8g
|
||||||
volumes:
|
volumes:
|
||||||
- ocr_models:/app/models
|
- ocr_models:/app/models
|
||||||
@@ -86,8 +86,8 @@ services:
|
|||||||
KRAKEN_MODEL_PATH: /app/models/german_kurrent.mlmodel
|
KRAKEN_MODEL_PATH: /app/models/german_kurrent.mlmodel
|
||||||
OCR_CONFIDENCE_THRESHOLD: "0.3"
|
OCR_CONFIDENCE_THRESHOLD: "0.3"
|
||||||
OCR_CONFIDENCE_THRESHOLD_KURRENT: "0.5"
|
OCR_CONFIDENCE_THRESHOLD_KURRENT: "0.5"
|
||||||
RECOGNITION_BATCH_SIZE: "1"
|
RECOGNITION_BATCH_SIZE: "4"
|
||||||
DETECTOR_BATCH_SIZE: "1"
|
DETECTOR_BATCH_SIZE: "2"
|
||||||
networks:
|
networks:
|
||||||
- archive-net
|
- archive-net
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
Reference in New Issue
Block a user