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 #18

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

hongziqi
Copy link
Collaborator

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

Copy link
Collaborator

@jiahaochen666 jiahaochen666 left a comment

Choose a reason for hiding this comment

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

lgtm

@jiahaochen666 jiahaochen666 merged commit 8a7e05f into main Dec 18, 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