mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 22:33:11 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user