mmsegmentation icon indicating copy to clipboard operation
mmsegmentation copied to clipboard

MMCV==2.0.0 is used but incompatible.

Open ulysses500 opened this issue 2 years ago • 2 comments

I am trying to install mmseg following the instructions:

!mim install "mmcv>=2.0.0" -t /local_folder/

!mim install mmengine -t /local_folder/

!git clone https://github.com/open-mmlab/mmsegmentation.git
%cd mmsegmentation
!git checkout main
!pip install -e .

However, I get this error:

      7 import mmcv
      8 print(mmcv.__version__)
---> 10 from mmsegmentation.mmseg.apis import inference_segmentor, init_segmentor
....
AssertionError: MMCV==2.0.0 is used but incompatible. Please install mmcv>=1.3.17, <=1.5.0.

Why is it requesting MMCV 1.5.0 ? MMSEG is previewed for MMCV == 2.0.0.

Note: I am using torch==1.12.1+cu116.

ulysses500 avatar Jun 18 '23 16:06 ulysses500

I'm getting a similar error. Is there a solution to this?

AssertionError: MMCV==2.0.1 is used but incompatible. Please install mmcv>=(1, 3, 13, 0, 0, 0), <(1, 7, 0, 0, 0, 0).

srama2512 avatar Aug 30 '23 22:08 srama2512

I got a similiar error and I fixed it. You should install mmcv==2.0.0rc4 and mmcv_full==1.7.1 and pip install ftfy

erencsknn avatar May 04 '24 20:05 erencsknn