Skip to content
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

Python 3.12 problem with class RapidTable #4

Open
rubenaros opened this issue Sep 13, 2024 · 1 comment
Open

Python 3.12 problem with class RapidTable #4

rubenaros opened this issue Sep 13, 2024 · 1 comment
Labels
more info 提供信息不足,无法定位问题

Comments

@rubenaros
Copy link

rubenaros commented Sep 13, 2024

Hi

With Python 3.12 the class RapidTable missing this atributtes:

'get_boxes_recs',
'load_img',
'ocr_engine',

With Python 3.12

table_engine = RapidTable(model_path='./models/table/en_ppstructure_mobile_v2_SLANet.onnx')
dir(table_engine)
2024-09-12 15:23:06,914 - rapid_layout - INFO: pp_layout_cdla contains ['table']
['call',
'class',
'delattr',
'dict',
'dir',
'doc',
'eq',
'format',
'ge',
'getattribute',
'getstate',
'gt',
'hash',
'init',
'init_subclass',
'le',
'lt',
'module',
'ne',
'new',
'reduce',
'reduce_ex',
'repr',
'setattr',
'sizeof',
'str',
'subclasshook',
'weakref',
'_ocr',
'ocr_sys',
'table_matcher',
'table_structure']

With Python 3.11 :
table_engine = RapidTable(model_path='./models/table/en_ppstructure_mobile_v2_SLANet.onnx')
dir(table_engine)
['call',
'class',
'delattr',
'dict',
'dir',
'doc',
'eq',
'format',
'ge',
'getattribute',
'getstate',
'gt',
'hash',
'init',
'init_subclass',
'le',
'lt',
'module',
'ne',
'new',
'reduce',
'reduce_ex',
'repr',
'setattr',
'sizeof',
'str',
'subclasshook',
'weakref',
'get_boxes_recs',
'load_img',
'ocr_engine',
'table_matcher',
'table_structure']

Any solution?

Thanks in advance

@Joker1212
Copy link
Member

is it wrong for you to run table rec with py3.12?

@SWHL SWHL added the more info 提供信息不足,无法定位问题 label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info 提供信息不足,无法定位问题
Projects
None yet
Development

No branches or pull requests

3 participants