Closed Liumucan closed 3 months ago
I have changed the CUDA version to meet the requirement of the lower version mmcv.
same here, the mmcv.runner._load_checkpoint is removed since runner is removed, however the mmengine.runner.load_checkpoint doesn't has the same functionality as the mmcv one. It just drive me crazy when two repo use different version of mmlab modules and you have to combine them together. the backward-compatibility is .... suck.
Prerequisite
Environment
PyTorch==2.4.0+cu124 MMCV==2.2.0
Reproduces the problem - code sample
I'm facing a problem with the installation of mmcv on my system. I'm trying to run a project that requires an older version of mmcv (1.3.18), but when I install this version, I will meet the incompatible like follows:
AssertionError: MMCV==1.3.16 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.1.0.
Then, I follow this instruction to install higher version mmcv (i.e., 2.0.0rc4). However, there is a issue that the project code are significantly different between the older and newer versions of mmcv. Many of the modules that were previously imported from mmcv are now either removed or moved to a different location, causing compatibility issues. I've tried to find information on how to import these modules from the newer version of mmcv, but I've only found details on how to import some modules from mmengine. However, there are still many modules that I'm unable to import. The following are the modules I'd like to import:There seems to be no comprehensive document to introduce how we can use these modules in the new version of mmcv. Could you please provide suggestions about how should I deal with this problem?
Reproduces the problem - command or script
Reproduces the problem - error message
Additional information
No response