-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
复现demo出现ModuleNotFoundError: No module named 'mmcv._ext' #56
Comments
同样的问题 |
解决了,mmcv有版本对应要求,但是又出来其他问题
…---原始邮件---
发件人: ***@***.***>
发送时间: 2022年3月2日(周三) 晚上8:44
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [open-mmlab/mmrotate] 复现demo出现ModuleNotFoundError: No module named 'mmcv._ext' (Issue #56)
同样的问题
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
感谢大佬帮助,解决了mmcv版本匹配问题,demo运行出现新的 是全部内容 main() |
我的版本
Python 3.9.7
mmcv 1.4.6
mmdet 2.22.0
mmrotate 0.1.0
torch 1.7.1+cu110
torchaudio 0.7.2
torchvision 0.8.2+cu110
nvcc -V显示 Cuda compilation tools, release 11.0, V11.0.194
nvidia-smi 显示 CUDA Version: 11.1
通过 1.pip install openmim 2.mim install mmrotate 命令,顺利安装成功。
创建checkpoint文件夹存放预训练模型,
测试命令 python demo/image_demo.py demo/demo.jpg configs/oriented_rcnn/oriented_rcnn_r50_fpn_1x_dota_le90.py checkpoint/oriented_rcnn_r50_fpn_1x_dota_le90-6d2b2ce0.pth demo/vis.jpg device 6
报错
Traceback (most recent call last):
File "/home/C/LUOLIE/mmrotate-main/demo/image_demo.py", line 14, in
from mmdet.apis import inference_detector, init_detector
File "/home/zhuyu/anaconda3/envs/mmmlab/lib/python3.9/site-packages/mmdet/apis/init.py", line 2, in
from .inference import (async_inference_detector, inference_detector,
File "/home/zhuyu/anaconda3/envs/mmmlab/lib/python3.9/site-packages/mmdet/apis/inference.py", line 7, in
from mmcv.ops import RoIPool
File "/home/zhuyu/anaconda3/envs/mmmlab/lib/python3.9/site-packages/mmcv/ops/init.py", line 2, in
from .active_rotated_filter import active_rotated_filter
File "/home/zhuyu/anaconda3/envs/mmmlab/lib/python3.9/site-packages/mmcv/ops/active_rotated_filter.py", line 8, in
ext_module = ext_loader.load_ext(
File "/home/zhuyu/anaconda3/envs/mmmlab/lib/python3.9/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/home/zhuyu/anaconda3/envs/mmmlab/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'mmcv._ext'
不知道问题出在哪里,请大佬指导一下
The text was updated successfully, but these errors were encountered: