open-mmlab/mmdetection

Error running mask_rcnn .

guisolsan opened this issue · 0 comments

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.