From 34668fb8172ca099fab0d01209b88d4470e80011 Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Fri, 29 Aug 2025 17:37:35 -0600 Subject: [PATCH] Remove ocr_config.yaml and update OCR service command in docker-compose.yml - Deleted the `ocr_config.yaml` file as it is no longer needed. - Updated the OCR service command in `docker-compose.yml` to reference the pipeline directly instead of the configuration file, streamlining the setup. --- docker-compose.yml | 3 +-- paddlex/ocr_config.yaml | 31 ------------------------------- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 paddlex/ocr_config.yaml diff --git a/docker-compose.yml b/docker-compose.yml index 72c1e76..aac7393 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -758,12 +758,11 @@ services: python -m pip install --upgrade pip; \ python -m pip install --no-cache-dir 'paddlex[ocr]'; \ python -m paddlex --install serving; \ - exec python -m paddlex --serve --pipeline '/app/ocr_config.yaml' --device cpu --port 8080" + exec python -m paddlex --serve --pipeline OCR --device cpu --port 8080" volumes: - paddleocr_cache:/root/.paddleocr - paddle_cache:/root/.cache/paddle - paddlex_data:/root/.paddlex - - ./paddlex/ocr_config.yaml:/app/ocr_config.yaml:ro healthcheck: test: ["CMD-SHELL", "wget -qO- http://localhost:8080 > /dev/null || exit 1"] interval: 30s diff --git a/paddlex/ocr_config.yaml b/paddlex/ocr_config.yaml deleted file mode 100644 index e922ef3..0000000 --- a/paddlex/ocr_config.yaml +++ /dev/null @@ -1,31 +0,0 @@ -pipeline_name: OCR -text_type: general -use_doc_preprocessor: true -use_textline_orientation: true - -SubModules: - TextDetection: - module_name: text_detection - model_name: PP-OCRv4_server_det - model_dir: null - TextRecognition: - module_name: text_recognition - model_name: PP-OCRv4_server_rec - model_dir: null - batch_size: 1 - score_thresh: 0 - -SubPipelines: - DocPreprocessor: - pipeline_name: doc_preprocessor - use_doc_orientation_classify: true - use_doc_unwarping: true - SubModules: - DocOrientationClassify: - module_name: doc_text_orientation - model_name: PP-LCNet_x1_0_doc_ori - model_dir: null - DocUnwarping: - module_name: image_unwarping - model_name: UVDoc - model_dir: null