SwinTransformer / Swin-Transformer-Semantic-Segmentation

This is an official implementation for "Swin Transformer: Hierarchical Vision Transformer using Shifted Windows" on Semantic Segmentation.
https://arxiv.org/abs/2103.14030
Apache License 2.0
1.13k stars 223 forks source link

MMCV= 1.1.15 is not compatible while the rest versions cannot be installed #51

Open fatemehteimury opened 2 years ago

fatemehteimury commented 2 years ago

Hi, I followed get_started.md to install all the dependencies same as is mentioned in the GitHub.

When I am running the command"python tools/test.py configs/pspnet/pspnet_r50-d8_512x1024_40k_cityscapes.py checkpoints/pspnet_r50-d8_512x1024_40k_cityscapes_20200605_003338-2966598c.pth --eval mIoU" Iam getting this error :

AssertionError: MMCV==1.1.5 is used but incompatible. Please install mmcv>=(1, 3, 13, 0, 0, 0), <=(1, 4, 0, 0, 0, 0). The problem I have is that I cannot install any mmcv versions between 1.3.13 and 1.4.0.

Can you please help how to solve it? Thanks

Interesting6 commented 2 years ago

similar question, I install mmcv from cml ”pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html“ provided by official doc.

then error raised "Swin-Transformer-Semantic-Segmentation/mmseg/init.py", line 27, in f'MMCV=={mmcv.version} is used but incompatible. ' \ AssertionError: MMCV==1.4.4 is used but incompatible. Please install mmcv>=[1, 1, 4], <=[1, 3, 0]."

so I install mmcv=1.3.0, then another version exception catched: "AssertionError: MMCV==1.3.0 is used but incompatible. Please install mmcv>=(1, 3, 13, 0, 0, 0), <=(1, 5, 0, 0, 0, 0)."

it really confused me!

I give up.

mohammadrezanaderi4 commented 2 years ago

Don't give up brother, we can not even install any version of mmcv <=1.3.0. hold on, be strong.

elimsjxr commented 7 months ago

similar question, I install mmcv from cml ”pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html“ provided by official doc.

then error raised "Swin-Transformer-Semantic-Segmentation/mmseg/init.py", line 27, in f'MMCV=={mmcv.version} is used but incompatible. ' AssertionError: MMCV==1.4.4 is used but incompatible. Please install mmcv>=[1, 1, 4], <=[1, 3, 0]."

so I install mmcv=1.3.0, then another version exception catched: "AssertionError: MMCV==1.3.0 is used but incompatible. Please install mmcv>=(1, 3, 13, 0, 0, 0), <=(1, 5, 0, 0, 0, 0)."

it really confused me!

I give up.

I have the same error, have you solved this problem?

anamce commented 1 month ago

same error no version is compatible even followed all the mmcv-versions and it doesn't import the other details Whats the correct mmcv cuda, torch and mmcv versions for this github repo?

aakgun commented 4 days ago

I see the similar error, this code could not be working. it is based o mmseg with mmcv version lower then 2.0.0 but those versions looks for some mmcv._ext file which is installed by upper versions.

I see several github applications using mmseg but could ot undertsnad how those are working ?

from mmseg.apis import inference_segmentor, init_segmentor, show_result_pyplot

Any proper solutions for this issue ?

anamce commented 2 days ago

Hi I f you find solution please let me know m facing the same issue no idea how to run any model with mmsegmentation.

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: Ayhan Akgün @.> Sent: Saturday, June 29, 2024 10:34:43 AM To: SwinTransformer/Swin-Transformer-Semantic-Segmentation @.> Cc: anamce @.>; Comment @.> Subject: Re: [SwinTransformer/Swin-Transformer-Semantic-Segmentation] MMCV= 1.1.15 is not compatible while the rest versions cannot be installed (Issue #51)

I see the similar error, this code could not be working. it is based o mmseg with mmcv version lower then 2.0.0 but those versions looks for some mmcv._ext file which is installed by upper versions.

I see several github applications using mmseg but could ot undertsnad how those are working ?

from mmseg.apis import inference_segmentor, init_segmentor, show_result_pyplot

Any proper solutions for this issue ?

— Reply to this email directly, view it on GitHubhttps://github.com/SwinTransformer/Swin-Transformer-Semantic-Segmentation/issues/51#issuecomment-2198068319, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCVTWXOY63QMT4DDVUBP74LZJZ5THAVCNFSM5HTUWCZ2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJZHAYDMOBTGE4Q. You are receiving this because you commented.Message ID: @.***>