-
Notifications
You must be signed in to change notification settings - Fork 648
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
Which models support batch_size>1? #880
Comments
maybe you need #868 |
@tpoisonooo thanks but I just need to know which ones actually support it... Im currently using mask rcnn with swin backbone, and I can't tell if it is supposed to support it or not...(it doesn't appear to be as it always errors out when I test it with batch_size>1 with both onnx and tensorrt), but would like to confirm. |
cc @RunningLeon |
@avickars Try to change deploy cfg to make it support multi-batch such as
|
@RunningLeon so for onnx...my understanding from the config is that it should support batch_size>1. However I am getting this error:
|
FYI running this model: https://github.com/open-mmlab/mmdetection/blob/3b72b12fe9b14de906d1363982b9fba05e7d47c1/configs/swin/mask_rcnn_swin-s-p4-w7_fpn_fp16_ms-crop-3x_coco.py. Also test.py works fine with "--batch-size 1". It errors out with any batch size > 1. Will test your solution for tensorrt shortly. |
Sadly it doesn't work...got this error: when running the engine file with batch_size 2 |
@avickars It fails on my side with only batch dim is dynamic. Maybe Swin backbone does not support multi-batch, @AllentDan. |
Hi, @avickars. It seems mrcnn and swin models cannot be exported to TensorRT with batch size >1. Once we set the
|
@AllentDan do you know if bachsize>1 should work for onnx? Just would like to confirm thats all. |
In my tseting with ONNXRuntime backend, it failed with batch size >1. |
If you have any question, please reopen this issue. |
I can't seem to find a list of the models that support a batch_size>1. Just wondering if such a list exists somewhere?
The text was updated successfully, but these errors were encountered: