-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployed PaddleOCR api suddenly results in incorrect OCR text results #13884
Comments
Can you provide screenshots of any error messages or output logs? |
Hi @jingsongliujing, I'm not seeing any error messages or anything in my output logs, it gives back a 200-status code, only that ocr text output is not making sense suddenly since today, I'm attaching the file and text returned for your reference. Note that same file was giving back correct results till yesterday. |
Oh,I need to see the difference between the normal and abnormal information to identify the issue. Based on the information currently provided, we are unable to pinpoint the exact cause of the anomaly. |
I understand. Can you please let me know what I can share to debug this? Since there is nothing in the logs. If it helps, I tried changing the version of FastAPI and it gave correct OCR text results for a while but now I'm seeing the issue again. My current versions used are:
I was thinking it had to do with FastAPi version pinning since I noted I wasn't doing that earlier in my prod environment but was doing so in my local environment, which has been running without any issue. So now I'm using the same Fast API versions. Also could it have something to do with Google Cloud Run configurations? Thanks. |
If you are using the CPU version, it is recommended to convert to the ONNX model and use ONNX Runtime for inference:
If you are using GPU for inference, it is suggested to upgrade PaddlePaddle to version 3.0:
|
🔎 Search before asking
🐛 Bug (问题描述)
I have deployed a
PaddleOCR
API viaFastAPI
on Google Cloud Run which was working correctly when making api calls until yesterday however suddenly today when I run the service, its returning gibberish output. Not sure what happened, I have not deployed any new version. When I run the app locally, it works correctly all the time.🏃♂️ Environment (运行环境)
paddleocr==2.7.3
paddlepaddle==2.6.1
fastapi==0.111.0
🌰 Minimal Reproducible Example (最小可复现问题的Demo)
Below is my initializing code, note that I'm already downloading the models in my Docker image
The text was updated successfully, but these errors were encountered: