Replies: 4 comments 5 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.
-
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