Replies: 5 comments 6 replies
-
paddlepaddle version? |
Beta Was this translation helpful? Give feedback.
-
maybe you can refer: #8607 |
Beta Was this translation helpful? Give feedback.
-
It's a problem with flask and paddlepaddle(cpu version).It can be solved using fastapi or paddlepaddle-gpu.Personally, it is recommended to replace flask with fastapi, because flask+paddlepaddle-gpu will cause the problem of gpu memory overflow. |
Beta Was this translation helpful? Give feedback.
-
the problem occures when you define ocr= PaddleOCR() once and use it multiple times. you should use it in a way that when you wanna call ocr you shoud redefine it. https://blog.csdn.net/with_me12138/article/details/136477210 |
Beta Was this translation helpful? Give feedback.
-
I used the "lang" parameter when using it, and this error did not occur. example: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
File "/var/snap/reh/common/stitching/stitching_utils/get_set_brand_package.py", line 171, in setStitchedBestPackageType
ocr_result = ocr.ocr(processed_img,cls=False)
File "/snap/reh/2178/lib/python3.10/site-packages/paddleocr/paddleocr.py", line 668, in ocr
dt_boxes, rec_res, _ = self.call(img, cls)
File "/snap/reh/2178/lib/python3.10/site-packages/paddleocr/tools/infer/predict_system.py", line 105, in call
rec_res, elapse = self.text_recognizer(img_crop_list)
File "/snap/reh/2178/lib/python3.10/site-packages/paddleocr/tools/infer/predict_rec.py", line 616, in call
self.predictor.run()
RuntimeError: could not execute a primitive
can someone help with this error ?
Beta Was this translation helpful? Give feedback.
All reactions