Problem Description:
Error reporting
analyse problem:
- I installed both mmcv and mmcv-full. In fact, mmcv is a simplified version of mmcv-full. So you only need to install one.
- Secondly, I uninstalled mmcv-full and still got an error. I thought it was a problem with the mmcv version.
- However, the mmcv installed through the cuda version queried by nvidia-smi is incorrect, considering that the cuda version is incorrect.
Solution:
1. Uninstall the installed mmcv and mmcv-full
pip uninstall mmcv
pip uninstall mmcv-full
2. Check the versions of cuda and torch
python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
The result is as shown below:
It can be seen that torch=1.12.1, cuda=10.2
3. Query the command to download the corresponding mmcv version
Query mmcv installation command
Click the ↑ hyperlink and select the corresponding torch and cuda for query, for example:
Then copy the statement to the command line and run
The installation is successful and then running is successful!