You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/get_started.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,12 +57,36 @@ Either `mmcv` or `mmcv-full` is compatible with MMSegmentation, but for methods
57
57
58
58
**Install mmcv for Linux:**
59
59
60
-
The pre-build mmcv-full (with PyTorch 1.6 and CUDA 10.1) can be installed by running: (other available versions could be found [here](https://mmcv.readthedocs.io/en/latest/#install-with-pip))
60
+
Install MMCV, we recommend you to install the pre-built mmcv as below.
See [here](https://github.com/open-mmlab/mmcv#installation) for different versions of MMCV compatible to different PyTorch and CUDA versions.
76
+
77
+
Optionally you can choose to compile mmcv from source by the following command
78
+
79
+
```shell
80
+
git clone https://github.com/open-mmlab/mmcv.git
81
+
cd mmcv
82
+
MMCV_WITH_OPS=1 pip install -e .# package mmcv-full, which contains cuda ops, will be installed after this step
83
+
# OR pip install -e . # package mmcv, which contains no cuda ops, will be installed after this step
84
+
cd ..
64
85
```
65
86
87
+
**Important:** You need to run `pip uninstall mmcv` first if you have mmcv installed. Because if `mmcv` and `mmcv-full` are both installed, there will be `ModuleNotFoundError`.
88
+
89
+
66
90
**Install mmcv for Windows (Experimental):**
67
91
68
92
For Windows, the installation of MMCV requires native C++ compilers, such as cl.exe. Please add the compiler to %PATH%.
0 commit comments