mmdeploy icon indicating copy to clipboard operation
mmdeploy copied to clipboard

ImportError:cannot import name 'points_in_polygons' from 'mmcv.ops'(D:\Anaconda3\envs\mmdeploy\lib\site-packages\mmcv\ops\__init__.py)

Open qiuchun opened this issue 3 years ago • 1 comments

When I use tensorrt to deploy mmrotate, this problem occurs in the model transformation phase, but it does not occur when I perform mmdetection model transformation

the commend: python deploy.py --deploy_cfg D:\MMbushu\mmdeploy\configs\mmrotate\rotated-detection_tensorrt_dynamic-320x320-1024x1024.py --model_cfg D:\pcb\models\xuanzhuan\mmrotate-main\configs\oriented_rcnn\oriented_rcnn_r50_fpn_1x_dota_le90.py --checkpoint D:\pcb\models\xuanzhuan\mmrotate-main\tools\run\6\latest.pth --img 1.jpg --dump-info --show

the log of error: image

the check_env.py result: image the pip list result: image

Is this the reason for mmrotate or mmcv?

qiuchun avatar Jul 27 '22 08:07 qiuchun

points_in_polygons.py is a normal python file which defined here: https://github.com/open-mmlab/mmcv/tree/v1.4.2/mmcv/ops

It is first added from mmcv==v1.4.2, so please upgrade your mmcv>=v1.4.2

tpoisonooo avatar Jul 28 '22 08:07 tpoisonooo

Close this issue due to no reply for a long time. Please open a new one if this exception still not fixed.

tpoisonooo avatar Aug 09 '22 02:08 tpoisonooo