mmdeploy - ERROR - `mmdeploy.backend.tensorrt.onnx2tensorrt.onnx2tensorrt` with Call id: 1 failed. exit
See original GitHub issueI was trying to convert Swin-T Mask R-CNN but getting following error:
[07/05/2022-13:55:25] [TRT] [I] No importer registered for op: TRTBatchedNMS. Attempting to import as plugin.
[07/05/2022-13:55:25] [TRT] [I] Searching for plugin: TRTBatchedNMS, plugin_version: 1, plugin_namespace:
Process Process-3:
Traceback (most recent call last):
File "/home/sort/miniconda3/envs/openmmlab/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/sort/miniconda3/envs/openmmlab/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/sort/mmdeploy/mmdeploy/apis/core/pipeline_manager.py", line 107, in __call__
ret = func(*args, **kwargs)
File "/home/sort/mmdeploy/mmdeploy/backend/tensorrt/onnx2tensorrt.py", line 79, in onnx2tensorrt
from_onnx(
File "/home/sort/mmdeploy/mmdeploy/backend/tensorrt/utils.py", line 113, in from_onnx
raise RuntimeError(f'Failed to parse onnx, {error_msgs}')
RuntimeError: Failed to parse onnx, In node 2160 (importFallbackPluginImporter): UNSUPPORTED_NODE: Assertion failed: creator && "Plugin not found, are the plugin name, version, and namespace correct?"
2022-07-05 13:55:26,152 - mmdeploy - ERROR - `mmdeploy.backend.tensorrt.onnx2tensorrt.onnx2tensorrt` with Call id: 1 failed. exit.
I’m using following command:
python ./tools/deploy.py \
'configs/mmdet/_base_/base_tensorrt-fp16_static-1050x1050.py' \
'/home/sort/ved/sort/onion_l2/mask_rcnn_swin-t-p4-w7_fpn_fp16_ms-crop-3x_coco.py' \
'/home/sort/ved/sort/onion_l2/mask_rcnn_swin/epoch_5.pth' \
'/home/sort/ved/sort/onion_l2/data/val/images/10000000000001.0.jpg' \
--test-img '/home/sort/ved/sort/onion_l2/data/val/images/1000000000012.0.jpg' \
--work-dir '/home/sort/ved/sort/onion_l2/mmdeploy_out/' \
--log-level DEBUG\
--show \
--device cuda:1
In file configs/mmdet/base/base_tensorrt-fp16_static-1050x1050.py I’m using 1056x1056 as dimensions.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
pytorch2onnx error on Jetson nano · Issue #641 - GitHub
' AssertionError: `mmdeploy.backend.tensorrt.onnx2tensorrt.onnx2tensorrt` with Call id: 1 failed.
Read more >Tutorial 9: ONNX to TensorRT (Experimental)
Try the new MMDeploy to deploy your model. Tutorial 9: ONNX to TensorRT (Experimental). How to convert models from ONNX to TensorRT. Prerequisite....
Read more >TensorRT 7.2.1 release notes - NVIDIA Documentation Center
Fixed a bug in the builder where networks with depthwise separable convolution layers whose output was also an FP32 output of the network...
Read more >MMDeploy — Rust library // Lib.rs
Currently, mmdeploy-sys is built upon the pre-built package of mmdeploy so this repo only supports OnnxRuntime and TensorRT backends. Don't be disappoint, ...
Read more >tools/deployment/onnx2tensorrt.py · tomofi/MMOCR at main
from mmcv.tensorrt import is_tensorrt_plugin_loaded, onnx2trt, save_trt_engine ... if isinstance(data[0]['img'], list) and len(data) > 1:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, did you build MMDeploy from the source? Is there a file
mmdeploy/lib/libmmdeploy_tensorrt_ops.so
?It worked. Here’s the final code: