Open tengyao-Zhang opened 2 years ago
simple_test
function in the SparseRoIHead
class (mmdet/models/roi_heads/sparse_roi_head.py
) in mmdeploy. mmdetection/mmdetection/mmdet/models/roi_heads/sparse_roi_head.py:365
).mmdeploy/codebase/mmdet/models/roi_heads/standard_roi_head.py
) rewrites the simple_test
function in the StandardRoIHead
class. Just imitate the example to rewirte SparseRoIHead/simple_test
.
Checklist
Describe the bug
I will convert a sparse rcnn model to onnx file, but it failed.
Reproduction
python tools\deploy.py .\configs\mmdet\detection\detection_onnxruntime_dynamic.py ..\mmdetection\configs\sparse_rcnn\sparse_rcnn_r50_fpn_mstrain_480-800_3x_coco.py ..\checkpoints\sparse_rcnn_r50 _fpn_mstrain_480-800_3x_coco_20201218_154234-7bc5c054.pth .\demo\demo.jpg --work-dir .\work_dir --show --dump-info
Environment
Error traceback