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

🎉 Milestone v2.0.0 is coming!!! #329

Open
2 of 9 tasks
SWHL opened this issue Jan 21, 2025 · 7 comments
Open
2 of 9 tasks

🎉 Milestone v2.0.0 is coming!!! #329

SWHL opened this issue Jan 21, 2025 · 7 comments
Assignees
Milestone

Comments

@SWHL
Copy link
Member

SWHL commented Jan 21, 2025

主要更新要点

  • 发布rapidocr库,整合onnxruntimeopenvinotorchpaddlepaddle四个推理引擎,大家可按需安装对应的推理引擎来使用。
  • 支持torch版本作为推理引擎
  • 与PaddleOCR参数部分对齐
  • 整理模型到modelscope,纳入版本管理,相应模型自动下载对齐
  • 图像缩放策略统一梳理
  • 开放文本检测、文本识别和分类的接口,可以依次batch调用
  • 支持json输出
  • 采用dataclass类来封装函数返回值,简化使用
  • 优化输入配置文件,保证可以通过配置文件使用,便于分享参数设置

更新主要想法

  • 考虑到终端命令行使用有限,且维护有些繁琐,新版本会弱化终端部分代码,仅保留快速验证代码。

进度:

  • 2025-02-12: 添加已有模型的自动下载功能
  • 2025-02-11: 优化初始化RapidOCR传参问题
  • 2025-02-10:采用抽象基类,统一四个推理引擎代码接口
  • 2025-02-08:
    • 将PP-OCRv4所有模型均转换并托管在modelscope上
    • 将推理引擎部分单独出来,声明基类,统一不同模态间的调用方式

现有更新分支:develop

欢迎参与进来。

@SWHL SWHL added this to the v2.0.0 milestone Jan 21, 2025
@SWHL SWHL self-assigned this Jan 21, 2025
@SWHL SWHL pinned this issue Jan 21, 2025
@skeeker
Copy link

skeeker commented Jan 21, 2025

这真是个好消息, 我想了解的是,pytorch版本的模型,预计什么什么能提供呀?

@SWHL
Copy link
Member Author

SWHL commented Jan 22, 2025

这个已经有了,参见PR: #320

@skeeker
Copy link

skeeker commented Jan 26, 2025

支持pyroch 转成 coreml么?

@SWHL
Copy link
Member Author

SWHL commented Jan 26, 2025 via email

@garbe-github-support
Copy link

一看这项目就骨骼惊奇,太棒了

@enymfc25173
Copy link

torch版本的模型还会内存泄漏吗

@SWHL
Copy link
Member Author

SWHL commented Feb 5, 2025

应该不会了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants