Skip to content

Commit 5c01cfd

Browse files
committed
adds install troubleshoot for mmcv cuda
1 parent 3a141b0 commit 5c01cfd

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

docs/INSTALL.md

+24-3
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ We need to provide the appropriate version of the `mmcv-full` package as well as
7979
#### CUDA-Version Installation Example
8080
<div class="termy">
8181
```console
82-
$ pip install mmcv-full=="1.3.1" -f https://download.openmmlab.com/mmcv/dist/CUDA_VERSION/TORCH_VERSION/index.html --upgrade
82+
$ pip install mmcv-full=="1.3.3" -f https://download.openmmlab.com/mmcv/dist/CUDA_VERSION/TORCH_VERSION/index.html --upgrade
8383
$ pip install mmdet
8484
```
8585
</div>
8686

8787
#### CPU-Version Installation
8888
<div class="termy">
8989
```console
90-
$ pip install mmcv-full=="1.2.5+torch.1.7.0+cpu" -f https://download.openmmlab.com/mmcv/dist/index.html --upgrade
90+
$ pip install mmcv-full=="1.3.3+torch.1.8.0+cpu" -f https://download.openmmlab.com/mmcv/dist/index.html --upgrade
9191
$ pip install mmdet
9292
```
9393
</div>
@@ -97,4 +97,25 @@ $ pip install mmdet
9797
```console
9898
$ pip install yolov5-icevision --upgrade
9999
```
100-
</div>
100+
</div>
101+
102+
## Troubleshooting
103+
104+
### MMCV is not installing with cuda support
105+
If you are installing MMCV from the wheel like described above and still are having problems with CUDA you will probably have to compile it locally. Do that by running:
106+
```
107+
pip install mmcv-full
108+
```
109+
110+
If you encounter the following error it means you will have to install CUDA manually (the one that comes with conda installation will not do).
111+
```
112+
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
113+
```
114+
Try installing it with:
115+
```
116+
sudo apt install nvidia-cuda-toolkit
117+
```
118+
Check the installation by running:
119+
```
120+
nvcc --version
121+
```

0 commit comments

Comments
 (0)