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
c. Install [MMCV](https://mmcv.readthedocs.io/en/latest/) following the [official instructions](https://mmcv.readthedocs.io/en/latest/#installation).
28
-
Either `mmcv` or `mmcv-full` is compatible with MMSegmentation, but for methods like CCNet and PSANet, CUDA ops in `mmcv-full` is required
26
+
Either `mmcv` or `mmcv-full` is compatible with MMSegmentation, but for methods like CCNet and PSANet, CUDA ops in `mmcv-full` is required.
27
+
28
+
**Install mmcv for Linux:**
29
29
30
30
The pre-build mmcv-full (with PyTorch 1.5 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))
1. The `version+git_hash` will also be saved in trained models meta, e.g. 0.5.0+c415a2e.
84
+
1. When training or testing models on Windows, please ensure that all the '\\' in paths are replaced with '/'. Add .replace('\\', '/') to your python code wherever path strings occur.
85
+
86
+
2. The `version+git_hash` will also be saved in trained models meta, e.g. 0.5.0+c415a2e.
58
87
59
-
2. When MMsegmentation is installed on `dev` mode, any local modifications made to the code will take effect without the need to reinstall it.
88
+
3. When MMsegmentation is installed on `dev` mode, any local modifications made to the code will take effect without the need to reinstall it.
60
89
61
-
3. If you would like to use `opencv-python-headless` instead of `opencv-python`,
90
+
4. If you would like to use `opencv-python-headless` instead of `opencv-python`,
62
91
you can install it before installing MMCV.
63
92
64
-
4. Some dependencies are optional. Simply running `pip install -e .` will only install the minimum runtime requirements.
93
+
5. Some dependencies are optional. Simply running `pip install -e .` will only install the minimum runtime requirements.
65
94
To use optional dependencies like `cityscapessripts` either install them manually with `pip install -r requirements/optional.txt` or specify desired extras when calling `pip` (e.g. `pip install -e .[optional]`). Valid keys for the extras field are: `all`, `tests`, `build`, and `optional`.
66
95
67
-
### A from-scratch setup script
96
+
97
+
## A from-scratch setup script
98
+
### Linux
68
99
69
100
Here is a full script for setting up mmsegmentation with conda and link the dataset path (supposing that your dataset path is $DATA_ROOT).
0 commit comments