-
Notifications
You must be signed in to change notification settings - Fork 732
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
[Model] Add MASTER #807
[Model] Add MASTER #807
Conversation
Codecov Report
@@ Coverage Diff @@
## main #807 +/- ##
==========================================
- Coverage 83.77% 83.74% -0.03%
==========================================
Files 168 170 +2
Lines 11202 11359 +157
Branches 1724 1743 +19
==========================================
+ Hits 9384 9513 +129
- Misses 1449 1468 +19
- Partials 369 378 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hi JiaquanYe! |
6bd640e
to
248decd
Compare
Hi @JiaquanYe , do you still have time to refactor the code? If not, it's totally fine and we can help you with the rest of the process. |
I have refactored some code. And I will finish it in this vocation. Sorry about refactoring late.
发自我的iPhone
…------------------ Original ------------------
From: Tong Gao ***@***.***>
Date: Sat,Apr 2,2022 11:44 AM
To: open-mmlab/mmocr ***@***.***>
Cc: Jianquan Ye ***@***.***>, Mention ***@***.***>
Subject: Re: [open-mmlab/mmocr] [Model] Add MASTER (PR #807)
Hi @JiaquanYe , do you still have time to refactor the code? If not, it's totally fine and we can help you with the rest of the process.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@JiaquanYe Awesome! |
BTW, please install pre-commit hooks and follow the guide to pass the lint test. They help you format your code :) Remember if you have run into an error saying |
OK. Thanks for your help during this time! @Mountchicken @gaotongxiao |
I accidentally click the close PR button, now I reopen now... |
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.
Things remain to be done except for the comments:
- Model's readme
- Model's metafile
- Checkpoint & log
- Repo's Readme (zh & cn)
- Tests for decoder
@Mountchicken @xinke-wang We can wrap up this PR together in the following days.
Hi @JiaquanYe , one more question: Does this implementation uses any code from any other open-source project? If so, please let us know so that we can cite them as well :) |
I have refered to this two repositories MASTER-pytorch , MASTER-TF when I develop MASTER-mmocr. I think you can cite these two repositories. |
@JiaquanYe OKay! |
…test for it, remove MasterLoss
Need to add |
Done. |
* fix open-mmlab#794: add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * Fix linting * after git rebase main * after git rebase main * fix conflict add MASTER * fix conflict add MASTER * after git rebase main * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * after git rebase main * add GCAModule to plugins * coexist master and master_old * fix merge mmocr 0.5.0 conflict * fix lint error * update * [fix] remove remains in __init__ * [update] update code in review * update readme for master * Add docstr to MasterDecoder, refined MasterDecoder, remove MASTERLoss * Unify the output length of MasterDecoder in train and test mode; add test for it, remove MasterLoss * update readme * update * update metafile,README,demo/README,config,ocr.py * Update mmocr/utils/ocr.py * update Co-authored-by: gaotongxiao <gaotongxiao@gmail.com> Co-authored-by: Mountchicken <mountchicken@outlook.com>
* fix open-mmlab#794: add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * Fix linting * after git rebase main * after git rebase main * fix conflict add MASTER * fix conflict add MASTER * after git rebase main * fix conflict add MASTER * fix conflict add MASTER * fix conflict add MASTER * after git rebase main * add GCAModule to plugins * coexist master and master_old * fix merge mmocr 0.5.0 conflict * fix lint error * update * [fix] remove remains in __init__ * [update] update code in review * update readme for master * Add docstr to MasterDecoder, refined MasterDecoder, remove MASTERLoss * Unify the output length of MasterDecoder in train and test mode; add test for it, remove MasterLoss * update readme * update * update metafile,README,demo/README,config,ocr.py * Update mmocr/utils/ocr.py * update Co-authored-by: gaotongxiao <gaotongxiao@gmail.com> Co-authored-by: Mountchicken <mountchicken@outlook.com>
This PR is for adding text recognition algorithm 'MASTER' code in mmocr repository.
Motivation
Develop text recognition algorithm 'MASTER' with mmocr framework.
Modification
Implement MASTER components in mmocr framework
Implement MASTER train config in mmocr
Checklist
Before PR:
I have run pre-commit and get some Failed,it is necessary to fix this?
yapf.....................................................................Failed
docformatter.............................................................Failed
And I do unit test, and get some error info, which is unrelated with MASTER code.
====================================================== short test summary info ======================================================
FAILED tests/test_apis/test_single_gpu_test.py::test_single_gpu_test_recog[../configs/textrecog/sar/sar_r31_parallel_decoder_academic .py]
FAILED tests/test_apis/test_single_gpu_test.py::test_single_gpu_test_recog[../configs/textrecog/crnn/crnn_academic_dataset.py] - R...
FAILED tests/test_apis/test_single_gpu_test.py::test_single_gpu_test_recog[../configs/textrecog/seg/seg_r31_1by16_fpnocr_academic.py]
FAILED tests/test_apis/test_single_gpu_test.py::test_single_gpu_test_det[../configs/textdet/psenet/psenet_r50_fpnf_600e_icdar2017.py]
FAILED tests/test_apis/test_single_gpu_test.py::test_single_gpu_test_kie[../configs/kie/sdmgr/sdmgr_unet16_60e_wildreceipt.py] - R...
FAILED tests/test_apis/test_single_gpu_test.py::test_single_gpu_test_kie_novisual[../configs/kie/sdmgr/sdmgr_novisual_60e_wildreceipt .py]