Closed galaxyGGG closed 1 year ago
In addition, I tried to convert a rotated-faster-rcnn model, and succeeded. Thus I suppose the envs are setup correctly.
I also tried to convert a redet model, which failed. The error was:
RuntimeError: riroi_align_rotated_forward_impl: implementation for device cpu not found.
Does this mean I can't convert a CPU version of REDET model?
hi, we do not support s2anet from mmrotate: https://mmdeploy.readthedocs.io/en/latest/04-supported-codebases/mmrotate.html#supported-models
In addition, I tried to convert a rotated-faster-rcnn model, and succeeded. Thus I suppose the envs are setup correctly.
I also tried to convert a redet model, which failed. The error was:
RuntimeError: riroi_align_rotated_forward_impl: implementation for device cpu not found.
Does this mean I can't convert a CPU version of REDET model?
you can convert to onnx with cuda. ONNX is device irrelevant.
In addition, I tried to convert a rotated-faster-rcnn model, and succeeded. Thus I suppose the envs are setup correctly. I also tried to convert a redet model, which failed. The error was:
RuntimeError: riroi_align_rotated_forward_impl: implementation for device cpu not found.
Does this mean I can't convert a CPU version of REDET model?
you can convert to onnx with cuda. ONNX is device irrelevant.
Sorry for not reading the whole guide, Thx for you patience. Looking forward to seeing the support for redet!
Checklist
Describe the bug
I followed the guide to: 1 create a conda env 2 install mmcv/mmdet/mmrotate/mmdeploy 3 convert a s2anet model on onnx(cpu)
The output stuck and finally stop with error. I'm not sure whether it is because my PC is not good enough, I have only a 1060 with 2GB memory.
Reproduction
python tools/deploy.py configs/mmrotate/rotated-detection_onnxruntime_dynamic.py s2anet-le135_r50_fpn_amp-1x_dota.py s2anet_r50_fpn_fp16_1x_dota_le135-5cac515c.pth dota_demo.jpg --work-dir mmdeploy_models/mmrotate/redet/ort --device cpu --show --dump-info
Environment
Error traceback