mmcv icon indicating copy to clipboard operation
mmcv copied to clipboard

ImportError: DLL load failed: 找不到指定的程序。

Open endaoguansanlu opened this issue 2 years ago • 4 comments

D:\Python\lib\site-packages\mmcv\cnn\bricks\transformer.py:33: UserWarning: Fail to import MultiScaleDeformableAttention from mmcv.ops.multi_scale_deform_attn, You should install mmcv-full if you need this module. warnings.warn('Fail to import MultiScaleDeformableAttention from ' Traceback (most recent call last): File "e:/MyModel/train.py", line 13, in from mmsegmentation.mmseg.apis import set_random_seed, train_segmentor File "e:\MyModel\mmsegmentation\mmseg\apis_init_.py", line 2, in from .inference import inference_segmentor, init_segmentor, show_result_pyplot from .decode_head import BaseDecodeHead File "e:\mymodel\mmsegmentation\mmseg\models\decode_heads\decode_head.py", line 11, in from ..losses import accuracy File "e:\mymodel\mmsegmentation\mmseg\models\losses_init_.py", line 6, in from .focal_loss import FocalLoss File "e:\mymodel\mmsegmentation\mmseg\models\losses\focal_loss.py", line 6, in from mmcv.ops import sigmoid_focal_loss as sigmoid_focal_loss File "D:\Python\lib\site-packages\mmcv\ops_init.py", line 2, in from .active_rotated_filter import active_rotated_filter File "D:\Python\lib\site-packages\mmcv\ops\active_rotated_filter.py", line 12, in ['active_rotated_filter_forward', 'active_rotated_filter_backward']) File "D:\Python\lib\site-packages\mmcv\utils\ext_loader.py", line 13, in load_ext ext = importlib.import_module('mmcv.' + name) File "D:\Python\lib\importlib_init_.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: DLL load failed: 找不到指定的程序。

I have this problem when I use mmsegmentation, do you know why, thanks!!!

endaoguansanlu avatar Jul 26 '22 03:07 endaoguansanlu

We recommend using English or English & Chinese for issues so that we could have broader discussion.

mm-assistant[bot] avatar Jul 26 '22 03:07 mm-assistant[bot]

Hi~, It seems you don't install mmcv-full correctly. Please let us know how you install mmcv-full

HAOCHENYE avatar Jul 26 '22 03:07 HAOCHENYE

Hi~, It seems you don't install mmcv-full correctly. Please let us know how you install mmcv-full

i ues the command that pip install -U openmim mim install mmcv-full

endaoguansanlu avatar Jul 26 '22 03:07 endaoguansanlu

Hi~, It seems you don't install mmcv-full correctly. Please let us know how you install mmcv-full

i ues the command that pip install -U openmim mim install mmcv-full

Could you provide the full log of mim install mmcv-full -v?

BTW, Does your repo version matches with the version of mmcv-full? image

HAOCHENYE avatar Jul 26 '22 07:07 HAOCHENYE