open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.22k stars 9.4k forks source link

Error running mask_rcnn . #11674

Open guisolsan opened 5 months ago

guisolsan commented 5 months ago

Hello ,

I was trying to move from torch model to onnx, using the file: tools/deployment/pytorch2onnx.py on the 2.x branch. And when executing the .py I get an error message:

'RuntimeError: roi_width >= 0 && roi_height >= 0INTERNAL ASSERT FAILED at “/tmp/pip-install-zn4dgnxr/mmcv-full/mmcv/ops/csrc/pytorch/cpu/roi_align.cpp”:138, please report a bug to PyTorch. ROIs in ROIAlign cannot have non-negative size; the problem was this'.

I have seen in the issues that it is a quite common error when you try to switch from torch to onn using a mask_rcnn, any solution?

Thank you so much.