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

update config to add argument:ser_class_dict_path #786

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

hongziqi
Copy link
Contributor

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

Motivation

replace hardcoded paths with the ser_class_dict_path configuration parameter, enhancing flexibility and maintainability.

Test Plan

python tools/infer/text/predict_ser.py --rec_algorithm SVTR_PPOCRv3_CH --det_algorithm DB++  --image_dir configs/kie/vi_layoutxlm/example.jpg --rec_char_dict_path mindocr/utils/dict/ch_dict.txt  --ser_class_dict_path mindocr/utils/dict/class_list_xfun.txt

image

@hongziqi hongziqi force-pushed the feat-update-predict-ser branch from ad9a3fd to ae74f44 Compare December 17, 2024 09:47
@hongziqi hongziqi force-pushed the feat-update-predict-ser branch from ae74f44 to 4d24e08 Compare December 17, 2024 09:49
@CaitinZhao CaitinZhao merged commit 5a48966 into mindspore-lab:main Dec 17, 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.

2 participants