-
Notifications
You must be signed in to change notification settings - Fork 675
[Feature] Support RTMDet-Ins. #1662
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
Conversation
转换后推理无结果,还有转换时的推理图片报错和位置也不对。 |
D:\Python\Python38\python.exe D:\ayjdata\Code\Deep_learning\OpenMMLab\mmdeploy\mmdeploy-rtmdet_ins_2023-01-18\tools\check_env.py 01/18 15:30:06 - mmengine - INFO - Environmental information
01/18 15:30:09 - mmengine - INFO - TorchVision: 0.12.0+cu113 01/18 15:30:09 - mmengine - INFO - Backend information 01/18 15:30:10 - mmengine - INFO - Codebase information 进程已结束,退出代码0 |
I also see weird output converting to onnx using the demo input with provided pretrained checkpoints: i.e: produces: |
Seems get a wrong result.
|
@mattiasbax @hanrui1sensetime @1095788063 Try to use |
@lvhan028 @hanrui1sensetime request review |
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.
May update UT, regression tests, and docs.
Using configs you have mentioned above, the visualize is still failed:
My script is:
In this script: img.shape[:2] is (427, 640), while binary_mask.shape[1:] is (427, 427), FYI. |
@AllentDan Please review |
Unit tests and docs will be added in another PR later. |
We have fixed a hard code bug in MMDeploy and now the visualized result should be correct. |
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.
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.
RTMDet always creates inputs with static shapes. So there is no need to specify a shape in deploy_cfg. Please set input_shape=None
keep pipeline[i].keep_ratio = False
.
configs/mmdet/instance-seg/instance-seg_rtmdet-ins_tensorrt_static-640x640.py
Outdated
Show resolved
Hide resolved
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
* [Feature] Support RTMDet-Ins. * fix visualize * fix rewrite trt * add config * support torch 1.13 * fix keep ratio resize * resolve scale factor bug * set to None
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
RTMDet-Ins ONNX and TensorRT support.
Modification
Inference Results(TRT)
Please use
configs/mmdet/instance-seg/instance-seg_rtmdet-ins_tensorrt_static-640x640.py
mask AP is aligned with pytorch RTMDet-tiny
Notice
Currently only support single batch inference.