Paddle ocr gpu support. #4

Merged
Seryusjj merged 40 commits from gpu_support into main 2026-01-19 17:35:25 +00:00
Showing only changes of commit 693d64e5e3 - Show all commits

View File

@@ -51,12 +51,18 @@ RUN if ls /tmp/wheels/paddlepaddle*.whl 1>/dev/null 2>&1; then \
else \ else \
echo "=== Installing PaddlePaddle from CUDA index (x86_64) ===" && \ echo "=== Installing PaddlePaddle from CUDA index (x86_64) ===" && \
pip install --no-cache-dir paddlepaddle-gpu==3.2.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/; \ pip install --no-cache-dir paddlepaddle-gpu==3.2.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/; \
fi fi && \
rm -rf /tmp/wheels
# Install remaining dependencies (skip paddlepaddle-gpu line from requirements) # Install remaining dependencies explicitly
RUN grep -v "paddlepaddle-gpu" requirements-gpu.txt > /tmp/requirements-no-paddle.txt && \ RUN pip install --no-cache-dir \
pip install --no-cache-dir -r /tmp/requirements-no-paddle.txt && \ paddleocr==3.3.2 \
rm -rf /tmp/wheels /tmp/requirements-no-paddle.txt jiwer \
numpy \
fastapi \
"uvicorn[standard]" \
pydantic \
Pillow
# Copy application code # Copy application code
COPY paddle_ocr_tuning_rest.py . COPY paddle_ocr_tuning_rest.py .