You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "server.py", line 100, in server
ocr_output, ocr_time = get_ocr_output(img_path=file_path, model=model)
File "/root/hangyan/route-rec/ocr.py", line 24, in get_ocr_output
output = model.ocr(img_path, cls=True)
File "/root/py-venvs/flaks-venv/lib64/python3.6/site-packages/paddleocr/paddleocr.py", line 474, in ocr
dt_boxes, rec_res = self.__call__(img, cls)
File "/root/py-venvs/flaks-venv/lib64/python3.6/site-packages/paddleocr/tools/infer/predict_system.py", line 85, in __call__
img_crop_list)
File "/root/py-venvs/flaks-venv/lib64/python3.6/site-packages/paddleocr/tools/infer/predict_cls.py", line 111, in __call__
self.predictor.run()
RuntimeError: could not execute a primitive
使用Flask包装成http接口,开启服务之后,测试图片时出现下面错误(每次从第二张图片开始就报错导,第一张是正常)
关闭
mkldnn
时,就没有这种错误,看了相关的issue,发现有人提出说是版本问题,但是我升级了版本,还是一样的问题;推测是mkldnn的问题,想问下是因为开启mkldnn之后内存占用过大的原因吗,但是看报错信息又是在predict_cls.py
文件中,有没有相关解决办法呢The text was updated successfully, but these errors were encountered: