NVlabs/SegFormer

ModuleNotFoundError: No module named 'mmcv._ext'

bekhzod-olimov opened this issue · 2 comments

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?

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.

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