MAFAT Satellite Vision Challenge Forum

Go back to competition Back to thread list Post in this thread

> mmcv installation error

I tried to run the basic model to see the results, but I encountered this error:
ModuleNotFoundError: No module named 'mmcv._ext'
With this warning:
UserWarning: On January 1, 2023, MMCV will release v2.0.0, in which it will remove components related to the training process and add a data transformation module. In addition, it will rename the package names mmcv to mmcv-lite and mmcv-full to mmcv. See https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md for more details.
And I saw in their website that:
"(1) It removed the following components:
mmcv.runner, mmcv.parallel, mmcv. engine and mmcv.device, removed in PR #2216."

But the base model is using the mmcv.runner in:
import mmcv
from mmcv.runner import load_checkpoint

self.checkpoint = load_checkpoint(self.model, checkpoint_path, map_location=self.device)

How can I solve this error to see the results of the base model?
Thank you and have a good day (:

Posted by: hadarsnorlax @ Feb. 17, 2023, 12:54 p.m.

Hi,

This error could be the result of several factors:

1.incorrect packgaes version - check pytorch version, mmrotate, mmcv, etc.
2.re-running the package installation without restarting the kernel.
3.re-running the training cell without restarting the kernel - it is not clear to us why this is happening, however we found out that a kernel restart usually solve that problem.

Shai,
MAFAT Challenge Team

Posted by: MAFAT_Challenge @ Feb. 19, 2023, 3:01 p.m.
Post in this thread