Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About mmcv question #9

Open
Tiacy opened this issue Jan 22, 2021 · 6 comments
Open

About mmcv question #9

Tiacy opened this issue Jan 22, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@Tiacy
Copy link

Tiacy commented Jan 22, 2021

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 的屏幕截图

@yuguangnudt
Copy link
Owner

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.

@Tiacy
Copy link
Author

Tiacy commented Jan 22, 2021

I think so.

@Tiacy
Copy link
Author

Tiacy commented Jan 22, 2021

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?

@yuguangnudt
Copy link
Owner

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.

@Tiacy
Copy link
Author

Tiacy commented Jan 27, 2021

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?

@yuguangnudt
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants