failed:Fatal error: NMSRotated is not a registered function/op
See original GitHub issue问题: 你好,根据教程,我尝试将MMrotate中的RotatedRetinaNet模型转换为onnx格式,转换后当我尝试加载onnx时出现了以下报错:onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from end2end.onnx failed:Fatal error: NMSRotated is not a registered function/op
(1)onnx转换
python tools/deploy.py \ configs/mmrotate/rotated-detection_onnxruntime_dynamic.py \ $MMROTATE_DIR/configs/rotated_retinanet/rotated_retinanet_obb_r50_fpn_1x_dota_le135.py \ $MMROTATE_DIR/checkpoints/rotated_retinanet_obb_r50_fpn_1x_dota_le135-e4131166.pth \ $MMROTATE_DIR/demo/demo.jpg \ --work-dir work-dirs/mmrotate/rotated_retinanet/ort \ --device cpu
(2)尝试加载onnx,报错
此外,我发现build/lib下是存在libmmdeploy_onnxruntime_ops.so文件的,我该如何解决这个问题呢?
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
NMSRotated is not a registered function/op` #664 - GitHub
failed :Fatal error: NMSRotated is not a registered function/op. Your usage: import onnxruntime as ort ort.InferenceSession("end2end.onnx").
Read more >Blog - Open3D
With the new PyTorch version, Open3D PyTorch ops work directly with standard ... Open3DScene.get_view to view (it is a property, not a function)...
Read more >Oracle® Communications Session Border Controller
If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and...
Read more >OpenShift Container Platform 4.8 release notes
A cluster administrator using Operator Lifecycle Manager (OLM) to install an Operator can encounter error conditions that are related either to the current...
Read more >发布 0.6.3 OpenMMLab - MMOCR's documentation!
plate matching based approaches fail to generalize well to document images of unseen templates, and are not robust against text recognition errors.
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
@jzlin1997 I had this problem before, and then I solved it according to the following method: (1) Query the path of mmdeploy_onnxruntime_ops. dll
(2) Copy onnxruntime. dll to the path where mmdeploy_onnxruntime_ops. dll is stored
Docs: https://github.com/open-mmlab/mmdeploy/blob/master/docs/en/01-how-to-build/linux-x86_64.md