NVlabs / SegFormer

Official PyTorch implementation of SegFormer
https://arxiv.org/abs/2105.15203
Other
2.36k stars 332 forks source link

ModuleNotFoundError: No module named 'mmcv._ext' #122

Open bekhzod-olimov opened 1 year ago

bekhzod-olimov commented 1 year ago

I installed mmcv version 1.3.0 based on the instructions of the repo but it keeps raising an error "ModuleNotFoundError: No module named 'mmcv._ext'". Which version of mmcv should I use?

marcelampc commented 1 year ago

Hello, this error is usually related to a problem during installation of mmcv or to the version. I am using mmcv==1.7.1 installed with pip. Be sure you've correctly installed a valid PyTorch version before installing mmcv.

For the note, I've had the same problem when trying to install mmcv using poetry this week. Although, it worked well a few weeks ago. I've just installed with pip and it worked well.

marcelampc commented 1 year ago

Also, I've installed mmcv-full. The new mmcv (>=2.0.0) is not compatible with segformer yet.