-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Incompatible with MMCV 2.2.0 #3729
Comments
I have the same issue,....Incompatible with MMCV 2.2.0 |
if your cuda version is 11.1 and torch is 1.10.x |
Edit the assert (mmcv_min_version <= mmcv_version < mmcv_max_version), \
f'MMCV=={mmcv.__version__} is used but incompatible. ' \
f'Please install mmcv>=2.0.0rc4.' to assert (mmcv_min_version <= mmcv_version, \
f'MMCV=={mmcv.__version__} is used but incompatible. ' \
f'Please install mmcv>=2.0.0rc4.' |
I had this problem: open-mmlab/mmcv#1386 I managed to install mmcv two ways: 1 - pip install mmcv==2.2.0 -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3/index.html Unfortunatelly when runing the demo: It shows AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4. Then again, if I try to install the version 2.0.0rc4, with pip or mim, it takes forever the wheel building. Runing on Windows 11, my cuda is 12.4 and my pytorch 2.4.0. I am guessing that my problems are related to these versions of cuda and pytorch. Is there a solution for this? |
I hope this works for you https://mmcv.readthedocs.io/en/latest/get_started/installation.html |
我遇到了这个问题,我直接将mmsegmentation/mmseg/init.py中的MMCV_MAX的值修改为MMCV_MAX = '6.5.0'就好了 MMCV_MIN = '2.0.0rc4' ` |
Works for me. My env is torch2.4.1+py3.10_cuda11.8_cudnn9_0. |
Hi, I installed mmcv and mmseg from source and both said installed successfully.
When run the demo, it reported:
Traceback (most recent call last): File "demo/image_demo.py", line 6, in <module> from mmseg.apis import inference_model, init_model, show_result_pyplot File "/home/qrx/proj/mmsegmentation/mmseg/__init__.py", line 61, in <module> assert (mmcv_min_version <= mmcv_version < mmcv_max_version), \ AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4.
Environment information:
sys.platform: linux
Python: 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0]
CUDA available: True
MUSA available: False
numpy_random_seed: 2147483648
GPU 0: NVIDIA GeForce RTX 3050 Laptop GPU
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 12.4, V12.4.131
GCC: x86_64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
PyTorch: 2.3.0+cu121
PyTorch compiling details: PyTorch built with:
OpenCV: 4.10.0
MMEngine: 0.10.4
MMCV: 2.2.0
MMCV Compiler: GCC 9.4
MMCV CUDA Compiler: 12.4
The text was updated successfully, but these errors were encountered: