VEC_VAD icon indicating copy to clipboard operation
VEC_VAD copied to clipboard

About mmcv question

Open Tiacy opened this issue 4 years ago • 6 comments

Thanks for your work! When building the environment,I installed the needed package named mmcv and mmdet . However,when I run the train.py, it said "ModuleNotFoundError: No module named 'mmcv._ext'". I can't find the solution. So,could you tell me how to solve the problem? Thank you very much! 2021-01-22 11-13-45 的屏幕截图 2021-01-22 11-12-50 的屏幕截图

Tiacy avatar Jan 22 '21 03:01 Tiacy

Thanks for your work! When building the environment,I installed the needed package named mmcv and mmdet . However,when I run the train.py, it said "ModuleNotFoundError: No module named 'mmcv._ext'". I can't find the solution. So,could you tell me how to solve the problem? Thank you very much! 2021-01-22 11-13-45 的屏幕截图 2021-01-22 11-12-50 的屏幕截图

Sorry I cannot see your screenshots. But It should be the version problem of mmdet and mmcv. Please refer to the instructions (https://github.com/open-mmlab/mmcv) to install the correct version. And if you build entire environment strictly according to our environment (the version of mmdet is v1.0rc0), pip install mmcv==0.2.14 should solve your problem.

yuguangnudt avatar Jan 22 '21 04:01 yuguangnudt

I think so.

Tiacy avatar Jan 22 '21 07:01 Tiacy

Successfully install mmcv==0.2.14 ,while mmdet==2.8.0. It said that MMCV==0.2.14 is used but incompatible,Please install mmcv>=1.0.5, <=1.0.5. But in (https://pypi.org/project/mmdet/1.0rc0/) ,I find the mmdet 1.0rc0 has been yanked. Install mmdet==1.0rc0 failed. So,do you have any suggestions?

Tiacy avatar Jan 22 '21 07:01 Tiacy

Successfully install mmcv==0.2.14 ,while mmdet==2.8.0. It said that MMCV==0.2.14 is used but incompatible,Please install mmcv>=1.0.5, <=1.0.5. But in (https://pypi.org/project/mmdet/1.0rc0/) ,I find the mmdet 1.0rc0 has been yanked. Install mmdet==1.0rc0 failed. So,do you have any suggestions?

Recently I have successfully reinstalled the environment. 'git clone -b v1.0rc0 https://github.com/open-mmlab/mmdetection.git' can clone mmdet v1.0rc0, which has been introduced in README.md. Please follow the instructions (https://github.com/open-mmlab/mmdetection/tree/v1.0rc0) to install mmdet ('cd mmdetection' and 'pip install -v -e .' after clone mmdet).

If you install newer mmdet (mmdet==2.8.0), you should install the corresponding version of mmcv-full (>=1.2.4) instead of mmcv. Any question please ask authors of mmcv and mmdet. In fact, I have tried to install mmdet==2.8.0 and mmcv-full>=1.2.4, but failed. There seems to be version matching issues, but I did it exactly as intructions. So if you solve the problems, please tell me. Thanks.

yuguangnudt avatar Jan 24 '21 02:01 yuguangnudt

Thanks for your help! I installed mmdet=1.0rc0+5bf935e and mmcv=0.2.14 successfully . When running the train.py ,it occur the issue "No module named 'mmdet.datasets.pipelines". Error in "from mmdet.datasets.pipelines import Compose " in fore_det/inference.py line 10,and train.py line 5. In the folder named '/mmdetection/mmdet/datasets' ,i didn't find the folder named piplines. So ,do you have any idea?

Tiacy avatar Jan 27 '21 02:01 Tiacy

Thanks for your help! I installed mmdet=1.0rc0+5bf935e and mmcv=0.2.14 successfully . When running the train.py ,it occur the issue "No module named 'mmdet.datasets.pipelines". Error in "from mmdet.datasets.pipelines import Compose " in fore_det/inference.py line 10,and train.py line 5. In the folder named '/mmdetection/mmdet/datasets' ,i didn't find the folder named piplines. So ,do you have any idea?

I have found the same bug. It should be the interface change of mmdet v1.0rc0. I have solved the problem by replace two key files, which are attached in the attachment below. Please download the attachment and follow steps below to solve the problem:

  1. Use the 'cascade_rcnn_r101_fpn_1x.py' in the downloaded folder new_mmdet_interface to replace the corresponding file in obj_det_config.
  2. Use the 'inference.py' in new_mmdet_interface to replace the corresponding file in fore_det.

Besides, as a possible alternative, you can install mmdet v1.0rc1, which has the folder named piplines.

new_mmdet_interface.zip

yuguangnudt avatar Jan 27 '21 04:01 yuguangnudt