-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
【OCR Issue No.9】移除明确不适合放在ppocr依赖中的依赖项 #11946
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是得有一种机制在运行 paddleocr --image_dir=ppstructure/recovery/UnrealText.pdf --type=structure --recovery=true --use_pdf2docx_api=true
自动安装依赖
运行时安装也是可以的,但是我觉得运行时安装包是不是不太好?我更推荐使用extern的方式指定包的安装 |
类似于 |
测试发现能够正常工作
|
ppstructure 目录下要不要建一个 |
都已经打包成ppcor了,用户应该已经没办法通过requirement进行一键安装了。除非新增一个函数,专门用来安装依赖 |
用户clone下来的情况下 |
这样就意味着ppstructure/recovery/requirements.txt是需要被保留的,即将所有try_import的包加到这里面 |
先setup.py里面去掉 |
关于这个移除的工作,我建议之后先考虑ppstructure是否需要保留在此项目中,如果不需要保留,则完成迁移后再移除。 |
#11906 task9
#11924
为了减小paddleocr的依赖,将部分包移除requirement.txt,采用paddle.utils.try_import的方式引用,当用户使用到时,提示用户安装。
各个移除的依赖项如下所示: