Add PaddleOCR-VL multimodal model support with Docker dependencies#2
Add PaddleOCR-VL multimodal model support with Docker dependencies#2
Conversation
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
|
@copilot verifique para corrigir os erros: 2026-02-26T19:04:57.037Z �[33mChecking connectivity to the model hosters, this may take a while. To bypass this check, set |
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Fixed in commit c5e3593. The error occurred because PaddleOCR-VL models require additional dependencies that weren't installed. Changes made:
To use VL models, install: pip install 'paddlex[ocr]'The API now returns a helpful error message instead of crashing: {
"detail": "PaddleOCR-VL requires additional dependencies. Install with: pip install 'paddlex[ocr]'"
}Traditional PP-OCR models continue to work without any additional dependencies. |
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
|
@copilot ajuste o projeto para resolver as dependências necessárias, como o Dockerfile e docker-compose |
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Fixed in commit 9b85cb6. Changes made:
Usage: docker-compose up -dVL models now work out of the box in Docker. Models are cached in persistent volumes ( |
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
Co-authored-by: tpraxedes <53882938+tpraxedes@users.noreply.github.com>
PaddleOCR-VL models require
paddlex[ocr]dependencies that weren't in the Docker build, causing runtimeDependencyErrorwhen attempting to use VL models via API parameters.Changes
Dependency Management
paddlex[ocr]>=3.4.0torequirements.inandrequirements.txtDocker Configuration
/root/.paddlexdirectory in Dockerfile for VL model cachepaddlex_modelspersistent volume in docker-compose.ymlPADDLE_PDX_DISABLE_MODEL_SOURCE_CHECKenvironment variable for faster startupLog Cleanup
main.pyusing module-specific filtersDocumentation
PADDLEOCR_VL_GUIDE.mdwith volume management and troubleshootingREADME.mdto position Docker as recommended deployment method for VL modelsUsage
Backward Compatibility
Traditional PP-OCR models unaffected. VL models purely additive via optional query parameters.
Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.