Skip to content
Snippets Groups Projects
Unverified Commit af33f11c authored by Wenwei Zhang's avatar Wenwei Zhang Committed by GitHub
Browse files

Update install scripts (#3290)

* Update install scripts

* Update installation of mmcv
parent f92765bb
No related branches found
No related tags found
No related merge requests found
...@@ -45,8 +45,14 @@ conda install pytorch=1.3.1 cudatoolkit=9.2 torchvision=0.4.2 -c pytorch ...@@ -45,8 +45,14 @@ conda install pytorch=1.3.1 cudatoolkit=9.2 torchvision=0.4.2 -c pytorch
If you build PyTorch from source instead of installing the prebuilt pacakge, If you build PyTorch from source instead of installing the prebuilt pacakge,
you can use more CUDA versions such as 9.0. you can use more CUDA versions such as 9.0.
c. Install mmcv, you can [install](https://github.com/open-mmlab/mmcv#install-with-pip) the pre-build mmcv. c. Install mmcv, we recommend you to install the pre-build mmcv as below.
Or you can choose either to compile mmcv from source by the following command
```shell
pip install mmcv-full==latest+torch1.5.0+cu101 -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html
```
See [here]((https://github.com/open-mmlab/mmcv#install-with-pip)) for different versions of MMCV compatible to different PyTorch and CUDA versions.
Optionally you can choose to compile mmcv from source by the following command
``` ```
git clone https://github.com/open-mmlab/mmcv.git git clone https://github.com/open-mmlab/mmcv.git
...@@ -138,6 +144,11 @@ conda activate open-mmlab ...@@ -138,6 +144,11 @@ conda activate open-mmlab
# install latest pytorch prebuilt with the default prebuilt CUDA version (usually the latest) # install latest pytorch prebuilt with the default prebuilt CUDA version (usually the latest)
conda install -c pytorch pytorch torchvision -y conda install -c pytorch pytorch torchvision -y
# install the latest mmcv
pip install mmcv-full
# install mmdetection
git clone https://github.com/open-mmlab/mmdetection.git git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection cd mmdetection
pip install -r requirements/build.txt pip install -r requirements/build.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment