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

can somebody help me #27

Closed
qslia opened this issue Dec 30, 2021 · 2 comments
Closed

can somebody help me #27

qslia opened this issue Dec 30, 2021 · 2 comments

Comments

@qslia
Copy link

qslia commented Dec 30, 2021

(open-mmlab) a@b:~/AlignPS$ sh run_test.sh
Traceback (most recent call last):
File "./tools/test.py", line 13, in
from mmdet.apis import multi_gpu_test, single_gpu_test
File "/home/a/AlignPS/mmdet/apis/init.py", line 1, in
from .inference import (async_inference_detector, inference_detector,
File "/home/a/AlignPS/mmdet/apis/inference.py", line 7, in
from mmcv.ops import RoIAlign, RoIPool
File "/home/a/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/ops/init.py", line 3, in
from .cc_attention import CrissCrossAttention
File "/home/a/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/ops/cc_attention.py", line 10, in
'_ext', ['ca_forward', 'ca_backward', 'ca_map_forward', 'ca_map_backward'])
File "/home/a/anaconda3/envs/open-mmlab/lib/python3.7/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
Traceback (most recent call last):
File "/home/a/anaconda3/envs/open-mmlab/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/a/anaconda3/envs/open-mmlab/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/a/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/distributed/launch.py", line 260, in
main()
File "/home/a/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/distributed/launch.py", line 256, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/home/a/anaconda3/envs/open-mmlab/bin/python', '-u', './tools/test.py', '--local_rank=0', './configs/fcos/fcos_center-normbbox-centeronreg-giou_r50_caffe_fpn_gn-head_dcn_4x4_1x_cuhk_reid_1500_stage1_fpncat_dcn_epoch24_multiscale_focal_x4_bg-2_lconv3dcn_sub_triqueue_dcn0.py', 'work_dirs/fcos_center-normbbox-centeronreg-giou_r50_caffe_fpn_gn-head_dcn_4x4_1x_cuhk_reid_1500_stage1_fpncat_dcn_epoch24_multiscale_focal_x4_bg-2_lconv3dcn_sub_triqueue_dcn0/cuhk_alignps.pth', '--launcher', 'pytorch', '--out', 'work_dirs/fcos_center-normbbox-centeronreg-giou_r50_caffe_fpn_gn-head_dcn_4x4_1x_cuhk_reid_1500_stage1_fpncat_dcn_epoch24_multiscale_focal_x4_bg-2_lconv3dcn_sub_triqueue_dcn0/results_1000.pkl']' returned non-zero exit status 1.

@qslia
Copy link
Author

qslia commented Dec 30, 2021

I have already installed mmcv=1.1.5 pytorch=1.7

@ZhengPeng7
Copy link

I met the same problem before. As I refer to the mmcv installation docs, there is no compatible version with mmcv==1.1.x+torch==1.7. In my env, I chose mmcv==1.1.5+torch==1.6.0, and you can download the pre-built mmcv-full here and install again to have a try.

@qslia qslia closed this as completed Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants