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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
DeprecationWarning: Please use
predict
instead.ocr_result = ocr.ocr(temp_image_path, cls=True)
Traceback (most recent call last):
File "D:\PDF\pdf_coordinate_extractor.py", line 100, in
extract_pdf_coordinates(args.pdf_path, args.output)
File "D:\PDF\pdf_coordinate_extractor.py", line 35, in extract_pdf_coordinates
ocr_result = ocr.ocr(temp_image_path, cls=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\paddle3\Lib\site-packages\typing_extensions.py", line 2950, in wrapper
return arg(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\paddle3\Lib\site-packages\paddleocr_pipelines\ocr.py", line 225, in ocr
return self.predict(img, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: PaddleOCR.predict() got an unexpected keyword argument 'cls'
OS是win10,CUDA 12.8
paddleocr 3.0.2
paddlepaddle-gpu 3.0.0
paddlex 3.0.2
如果用低版本的
paddle 1.0.2
paddleocr 2.10.0
paddlepaddle-gpu 3.0.0
也是CUDA12.8 工作就一切正常为。谢谢
Beta Was this translation helpful? Give feedback.
All reactions