Can the default InstanceNormalization replacement with MMCVInstanceNormalization be made optional?
See original GitHub issueI’m with mmcv-full==1.3.16
, trying to export trt engine with mmcv’s exporter but failed with,
[06/07/2022-00:28:05] [TRT] [E] 3: getPluginCreator could not find plugin: MMCVInstanceNormalization version: 1
Traceback (most recent call last):
File "tools/deployment/onnx2tensorrt.py", line 145, in <module>
workspace_size=args.workspace_size)
File "tools/deployment/onnx2tensorrt.py", line 47, in onnx2tensorrt
max_workspace_size=max_workspace_size)
File "/path/to/my/conda_env/open-mmlab/lib/python3.7/site-packages/mmcv/tensorrt/tensorrt_utils.py", line 63, in onnx2trt
raise RuntimeError(f'parse onnx failed:\n{error_msgs}')
RuntimeError: parse onnx failed:
In node 6 (importFallbackPluginImporter): UNSUPPORTED_NODE: Assertion failed: creator && "Plugin not found, are the plugin name, version, and namespace correct?"
My onnx can be successfully exported by native trtexec. It seems TensorRT 7.2+ readily supports this operation. I have to otherwise register MMCVInstanceNormalization plugin somehow. Could you also show me show to do the latter?
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
open-mmlab/mmcv - Python 博客
Can the default InstanceNormalization replacement with MMCVInstanceNormalization be made optional ? I'm with mmcv-full==1.3.16 , trying to export trt engine ...
Read more >Serialization Error in load: 0 (Cannot deserialize plugin since ...
Hi! Have you solved it? Got the same problem. ... and got this error: [TensorRT] ERROR: INVALID_ARGUMENT: getPluginCreator could not find plugin ...
Read more >tfa.layers.InstanceNormalization | TensorFlow Addons
Instance Normalization is an specific case of GroupNormalization since it normalizes all features of one channel. The Groupsize is equal to ...
Read more >mmcv Documentation
Create a build method (optional, in most cases you can just use the default one). 2. Create a registry. 3. Use this registry...
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
We have move TensorRT support to MMDeploy. Which supports InstanceNorm with TensorRT>=8.0
My bad, not loading correct engine file. But a new error shows up,
Solved with
trt.init_libnvinfer_plugins(None, "")
mentioned here.