question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AssertionError: ca_forward miss in module _ext

See original GitHub issue

hello,

The following error occurs when I run the train.py file. Is it the MMCV problem ?

C:\Users\admin\Anaconda3\envs\pytorch_envs\python.exe C:/Users/admin/Desktop/pytorch/UperNet_Swin/tools/train.py
Traceback (most recent call last):
  File "C:/Users/admin/Desktop/pytorch/UperNet_Swin/tools/train.py", line 13, in <module>
    from UperNet_Swin.mmseg.apis import set_random_seed, train_segmentor
  File "C:\Users\admin\Desktop\pytorch\UperNet_Swin\mmseg\apis\__init__.py", line 1, in <module>
    from .inference import inference_segmentor, init_segmentor, show_result_pyplot
  File "C:\Users\admin\Desktop\pytorch\UperNet_Swin\mmseg\apis\inference.py", line 8, in <module>
    from UperNet_Swin.mmseg.models import build_segmentor
  File "C:\Users\admin\Desktop\pytorch\UperNet_Swin\mmseg\models\__init__.py", line 1, in <module>
    from .backbones import *  # noqa: F401,F403
  File "C:\Users\admin\Desktop\pytorch\UperNet_Swin\mmseg\models\backbones\__init__.py", line 2, in <module>
    from .fast_scnn import FastSCNN
  File "C:\Users\admin\Desktop\pytorch\UperNet_Swin\mmseg\models\backbones\fast_scnn.py", line 7, in <module>
    from UperNet_Swin.mmseg.models.decode_heads.psp_head import PPM
  File "C:\Users\admin\Desktop\pytorch\UperNet_Swin\mmseg\models\decode_heads\__init__.py", line 4, in <module>
    from .cc_head import CCHead
  File "C:\Users\admin\Desktop\pytorch\UperNet_Swin\mmseg\models\decode_heads\cc_head.py", line 7, in <module>
    from mmcv.ops import CrissCrossAttention
  File "C:\Users\admin\Anaconda3\envs\pytorch_envs\lib\site-packages\mmcv\ops\__init__.py", line 3, in <module>
    from .cc_attention import CrissCrossAttention
  File "C:\Users\admin\Anaconda3\envs\pytorch_envs\lib\site-packages\mmcv\ops\cc_attention.py", line 10, in <module>
    '_ext', ['ca_forward', 'ca_backward', 'ca_map_forward', 'ca_map_backward'])
  File "C:\Users\admin\Anaconda3\envs\pytorch_envs\lib\site-packages\mmcv\utils\ext_loader.py", line 13, in load_ext
    assert hasattr(ext, fun), f'{fun} miss in module {name}'  
AssertionError: ca_forward miss in module _ext

Process finished with exit code 1

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
powlookcommented, Feb 3, 2022

Hi @zhouzaida, I uninstall mmcv-full and reinstall again. It is working now. Tks, PL

1reaction
liguopeng0923commented, Apr 27, 2022

I encounter this question too, but I can’t solve it by this method

Read more comments on GitHub >

github_iconTop Results From Across the Web

MMCV Installation — MMDetection 2.11.0 documentation
Compatibility issue between MMCV and MMDetection; “ConvWS is already registered in conv layer”; “AssertionError: MMCV==xxx is used but incompatible.
Read more >
iou3d_boxes_iou_bev_forward miss in module _ext ----安装 ...
Case a: If you develop and run mmdet directly, install it from source: git clone https://github.com/open-mmlab/mmdetection.git cd mmdetection ...
Read more >
iou3d_boxes_iou_bev_forward miss in module _ext
Btw, with this issues, i can't even import MMOCR and run the collect_env script. The reason why MMCV's version seems to be bounded...
Read more >
AssertionError: active_rotated_filter_forward miss in module _ext
安装好mmdection和mmcv后,从mmcv库中导出SAConv模块,运行时报错AssertionError: active_rotated_filter_forward miss in modul...
Read more >
AssertionError: active_rotated_filter_forward miss in module _ext
This issue has been created since 2022-05-28. 安装好mmdection和mmcv后,从mmcv库中导出SAConv模块,运行时报错AssertionError: active_rotated_filter_forward miss in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found