# 这个要加上-f参数,不然 MMCV CUDA Compiler: not available # MMCV CUDA Compiler: 10.1 是正确的 pip install mmcv-full==1.5.0 -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.7.0/index.html
GPU 0: Tesla V100-SXM2-32GB (UUID: GPU-828d98d3-ad2a-0a92-d4d9-0dac21a5439f) /public/home/zhaol/syxue20225227095/fewshotdetection/mmfewshot-main Traceback (most recent call last): File "tools/detection/train.py", line 12, in <module> from mmcv import Config, DictAction ImportError: cannot import name 'Config' from 'mmcv' (/public/home/zhaol/anaconda3/envs/syxue2/lib/python3.8/site-packages/mmcv/__init__.py)
=================================== mmcls 0.25.0 https://github.com/open-mmlab/mmclassification mmcv 2.1.0 https://github.com/open-mmlab/mmcv mmdet 3.2.0 https://github.com/open-mmlab/mmdetection mmengine 0.10.1 https://github.com/open-mmlab/mmengine GPU 0: Tesla V100-SXM2-32GB (UUID: GPU-828d98d3-ad2a-0a92-d4d9-0dac21a5439f) /public/home/zhaol/syxue20225227095/fewshotdetection/mmfewshot-main Traceback (most recent call last): File "tools/detection/train.py", line 12, in <module> from mmcv import Config, DictAction ImportError: cannot import name 'Config' from 'mmcv' (unknown location) =================================== mmcls 0.25.0 https://github.com/open-mmlab/mmclassification mmdet 3.0.0 https://github.com/open-mmlab/mmdetection mmengine 0.10.1 https://github.com/open-mmlab/mmengine mmcv-full 1.7.1 https://github.com/open-mmlab/mmcv GPU 0: Tesla V100-SXM2-32GB (UUID: GPU-828d98d3-ad2a-0a92-d4d9-0dac21a5439f) /public/home/zhaol/syxue20225227095/fewshotdetection/mmfewshot-main /public/home/zhaol/anaconda3/envs/syxue2/lib/python3.8/site-packages/mmcv/__init__.py:20: UserWarning: On January 1, 2023, MMCV will release v2.0.0, inwhich it will remove components related to the training process and add a data transformation module. In addition, it will rename the package names mmcv to mmcv-lite and mmcv-full to mmcv. See https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md for more details. warnings.warn( Traceback (most recent call last): File "tools/detection/train.py", line 15, in <module> from mmdet.utils import collect_env File "/public/home/zhaol/anaconda3/envs/syxue2/lib/python3.8/site-packages/mmdet/__init__.py", line 16, in <module> assert (mmcv_version >= digit_version(mmcv_minimum_version) AssertionError: MMCV==1.7.1 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.1.0.
RuntimeError: CUDA error: no kernel image is available for execution on the device 错误
安装的pytorch版本和cuda版本不对应
刚开始安装的pytorch 1.6.0 + cuda 10.1,