-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ModuleNotFoundError: No module named 'mmcv._ext' #204
Comments
Just cd .. |
Any update? |
Build mmcv with |
what you mean MMCV_WITH_OPS=1? I can't run MMCV_WITH_OPS=1 pip install -e . |
Workaround: |
Thanks! works for me. |
I also can't run it.Are you deal with it? |
I can't run MMCV_WITH_OPS=1 pip install -e, |
You should not forget the dot in the end ".". Which just means installing from current directory. |
I run the MMCV_WITH_OPS=1 pip install -e . and then solve the problem |
请问你解决了吗,我也遇到了 |
That didn't work for me. And my mmcv version is 1.1.3. Still, I got Any solution? My log is as below: python demo/image_demo.py demo/demo.jpg configs/mask_rcnn/mask_rcnn_x101_64x4d_fpn_1x_coco.py
checkpoints/mask_rcnn_x101_64x4d_fpn_1x_coco_20200201-9352eb0d.pth
Traceback (most recent call last):
File "demo/image_demo.py", line 3, in <module>
from mmdet.apis import inference_detector, init_detector, show_result_pyplot
File "/home/linhan/workspace/mmcv/mmdetection/mmdet/apis/__init__.py", line 1, in <module>
from .inference import (async_inference_detector, inference_detector,
File "/home/linhan/workspace/mmcv/mmdetection/mmdet/apis/inference.py", line 7, in <module>
from mmcv.ops import RoIAlign, RoIPool
File "/home/linhan/anaconda3/lib/python3.7/site-packages/mmcv-1.1.3-py3.7-linux-x86_64.egg/mmcv/ops/__init__.py", line 1, in <module>
from .bbox import bbox_overlaps
File "/home/linhan/anaconda3/lib/python3.7/site-packages/mmcv-1.1.3-py3.7-linux-x86_64.egg/mmcv/ops/bbox.py", line 3, in <module>
ext_module = ext_loader.load_ext('_ext', ['bbox_overlaps'])
File "/home/linhan/anaconda3/lib/python3.7/site-packages/mmcv-1.1.3-py3.7-linux-x86_64.egg/mmcv/utils/ext_loader.py", line 11, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/home/linhan/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext' Thank you in advance. |
@VoldemortGin are you able to resolve this issue, I am also having the same issue. |
This worked for me... Thanks a ton @NikZak |
For windows, this worked for me: pip uninstall mmcv |
This will work in RISC-V, I installed it on SiFive Unleashed board, it worked for me.
pip uninstall mmcv
pip uninstall mmcv-full
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
set MMCV_WITH_OPS=1
pip install -e .
Thanks and Regards,
Surendra Allam,
Senior Software Engineer,
Exaleap Semiconductors,
Bangalore, India.
…Sent from my iPhone
On 03-Feb-2021, at 7:52 PM, Koray Orhun <notifications@github.com> wrote:
For windows, this worked for me:
pip uninstall mmcv
pip uninstall mmcv-full
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
set MMCV_WITH_OPS=1
pip install -e .
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#204 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AK63YVK7VSOHVO7SFTNWZNTS5FLZRANCNFSM4K7ORCXQ>.
|
did you solve it ? |
For people still struggling with this error:
For example mine is
This is Pytorch 1.8.0 with cuda 11.1.
PS Here's our project where we used |
请问怎么解决的啊 MMCV_WITH_OPS=1 pip install -e .这个命令执行报错 'MMCV_WITH_OPS' 不是内部或外部命令,也不是可运行的程序 |
this is the accuracy |
Still getting the error mentioned in the title when trying this on windows conda environment. Would also rather have the mmdet-full. Been struggling for a long time with all these versions. Someone with a working windows version that could provide quick explanation? |
I am really appreciate that after stuggling one day on "No module named 'mmcv._ext'" problem that after uninstall mmcv-full and uninstall mmcv .I can't pip install -e. So I use your method "pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html" And it work well now. |
For me helped
|
Have the same issue, the approaches listed here do not work for me This is the only thing preventing me from using your model, could you guys either simplify the installation process or provide more reliable instructions for installing the model? I don't mean to come across as impatient, but I was excited to use your model after seeing your object detection benchmark results, and this issue looks like its been around for a while |
sry, i have tried your method, but it is seems to work failed in Windows,it reports MMCV_WITH_OPS is not a inner or out command, so are u guys who said to slove this problem all work on linux or other else ? |
this reply definitely solved my problem, thanks sir! @EgShes |
I clone the repo and run pip install.
When I run test_image.py, this error shows up.
mmcv/mmcv/video/optflow.py
Line 4 in 120c6a6
The text was updated successfully, but these errors were encountered: