-
Notifications
You must be signed in to change notification settings - Fork 755
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
[Fix] fix converting to onnx bug because of changing key from img_shape to resize_shape #523
Conversation
Codecov Report
@@ Coverage Diff @@
## main #523 +/- ##
==========================================
- Coverage 85.69% 85.65% -0.04%
==========================================
Files 142 142
Lines 9539 9543 +4
Branches 1364 1364
==========================================
Hits 8174 8174
- Misses 1048 1052 +4
Partials 317 317
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM, ping @AllentDan Could you check if this change would incur any potential risks on deployment tasks?
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.
PSENet and PANNet need test as well
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.
LGTM but need @gaotongxiao approve
1: 'seq_len', | ||
2: 'num_classes' |
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.
What are these keys for?
…pe to resize_shape (open-mmlab#523) * fix pytorch to onnx for mmocr0.3.0 * fix pytorch to onnx for mmocr0.3.0 * modify deployment doc and fix scale_factor bug and test psenet and panet * fix trt part * init detector with **(cfg.model) Co-authored-by: AllentDan <AllentDan@yeah.net>
…pe to resize_shape (open-mmlab#523) * fix pytorch to onnx for mmocr0.3.0 * fix pytorch to onnx for mmocr0.3.0 * modify deployment doc and fix scale_factor bug and test psenet and panet * fix trt part * init detector with **(cfg.model) Co-authored-by: AllentDan <AllentDan@yeah.net>
Motivation
In #407, in meta_keys, the img_shape was replaced by resize_shape, which causes failure on converting CRNN to ONNX.