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

310p export bug fix #699

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Conversation

kk928290341
Copy link
Collaborator

@kk928290341 kk928290341 commented May 16, 2024

Thank you for your contribution to the MindOCR repo.
Before submitting this PR, please make sure:

Motivation

310p机器ocr检测和识别模型 全量export,发现可修复的bug

  1. crnn_resnet34_ch convert shape匹配不上
  2. 文件存在时remove报错
  3. Abinet, svtr_tiny export失败解决:
    (1) 有些ms版本在init里不能有tensor操作,一般是要先用numpy算好,再转成Tensor
    (2)矩阵乘维度对不上,没有自动广播

(Write your motivation for proposed changes here.)

Test Plan

(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)

Related Issues and PRs

(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)

@horcham
Copy link
Collaborator

horcham commented May 16, 2024

涉及算子修改,需复验精度。验证精度用以下命令:

rec类模型(例如svtr_tiny):
python tools/benchmarking/multi_dataset_eval.py --config configs/rec/svtr/svtr_tiny.yaml

det类模型(例如dbnet_r50):
python tools/eval.py --config configs/det/dbnet/db_r50_icdar15.yaml

@kk928290341
Copy link
Collaborator Author

kk928290341 commented May 16, 2024 via email

@kk928290341
Copy link
Collaborator Author

复验精度
abinet 平均acc=91.35%
svtr-tiny 平均acc=90.25%
达标

@Mark-ZhouWX
Copy link
Collaborator

右上角修改一下Reviewers

Copy link
Collaborator

@Mark-ZhouWX Mark-ZhouWX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve

@kk928290341
Copy link
Collaborator Author

kk928290341 commented Jun 7, 2024 via email

@Mark-ZhouWX Mark-ZhouWX merged commit 066fc93 into mindspore-lab:main Jun 7, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants