We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pix_to_text.py 第57行 layout_parser = DocXLayoutParser.from_config(None, device=device)
@classmethod def from_config(cls, configs: Optional[dict] = None, device: str = None, **kwargs): configs = configs or {} device = select_device(device) # configs['device'] = device if device != 'mps' else 'cpu'
return cls( device=device, model_fp=configs.get('model_fp', None), root=configs.get('root', data_dir()), **configs, )
在return时configs存在root初始化会报错,希望修改下 @classmethod def from_config(cls, configs: Optional[dict] = None, device: str = None, **kwargs): configs = configs or {} device = select_device(device) # configs['device'] = device if device != 'mps' else 'cpu' configs["root"] = configs.get('root', data_dir()) configs["model_fp"] = configs.get('model_fp', None) return cls( device=device, **configs, )
The text was updated successfully, but these errors were encountered:
看看你的版本是否是最新版
Sorry, something went wrong.
main分支代码路径是pix2text.doc_xl_layout.doc_xl_layout_parser.DocXLayoutParser.from_config
v1.1.1.2 已修复,感谢
No branches or pull requests
pix_to_text.py 第57行 layout_parser = DocXLayoutParser.from_config(None, device=device)
@classmethod
def from_config(cls, configs: Optional[dict] = None, device: str = None, **kwargs):
configs = configs or {}
device = select_device(device)
# configs['device'] = device if device != 'mps' else 'cpu'
在return时configs存在root初始化会报错,希望修改下
@classmethod
def from_config(cls, configs: Optional[dict] = None, device: str = None, **kwargs):
configs = configs or {}
device = select_device(device)
# configs['device'] = device if device != 'mps' else 'cpu'
configs["root"] = configs.get('root', data_dir())
configs["model_fp"] = configs.get('model_fp', None)
return cls(
device=device,
**configs,
)
The text was updated successfully, but these errors were encountered: