mmcv
mmcv copied to clipboard
from mmcv.ops import RoIPool error
I have searched related issues but cannot get the expected help.
Traceback (most recent call last):
File "D:\widows_mm\mmdetection\demo\image_demo.py", line 5, in
Hi, it seems you failed to install mmcv-full
correctly. What's your install steps? We suggest using openmim
to install mmcv-full
pip install -U openmim
mim install mmcv-full
Hi @jiaqizhang123-stack , I'm facing the same problem as you do. Before that i've tried many many install or uninstall pipelines like https://github.com/open-mmlab/mmcv/issues/1594. Now this is my solving method:
(delete previous env which contains mmcv or mmdet or mmseg... on windows10)
(create a whole new env) conda create -n your_env_name python=3.9
(install pytorch, for myself only needed cpu-version to infer) conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cpuonly
(use mim) pip install -U openmim
(install mmcv) mim install mmcv-full
(install mmdet) pip install mmdet
(install opencv) pip install opencv-python
finally mmcv-full==1.6.1 mmdet==2.25.1 installed, and it works for me.
Besides, for myself, if i use like
pip install mmcv-full=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.11.0/index.html
without mim, it failed all the time