Unverified Commit 2478cb6f authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

[Docs] Update supported pytorch and cuda versions (#2456)

* Update supported pytorch versions

* update

* update
parent 104aaa8b
......@@ -22,6 +22,8 @@
[![docs](https://img.shields.io/badge/docs-2.x-blue)](https://mmcv.readthedocs.io/en/2.x/)
[![platform](https://img.shields.io/badge/platform-Linux%7CWindows%7CmacOS-blue)](https://mmcv.readthedocs.io/en/2.x/get_started/installation.html)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mmcv)](https://pypi.org/project/mmcv/)
[![pytorch](https://img.shields.io/badge/pytorch-1.6~1.13-orange)](https://pytorch.org/get-started/previous-versions/)
[![cuda](https://img.shields.io/badge/cuda-9.2~11.7-green)](https://developer.nvidia.com/cuda-downloads)
[![PyPI](https://img.shields.io/pypi/v/mmcv)](https://pypi.org/project/mmcv)
[![badge](https://github.com/open-mmlab/mmcv/workflows/build/badge.svg)](https://github.com/open-mmlab/mmcv/actions)
[![codecov](https://codecov.io/gh/open-mmlab/mmcv/branch/master/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmcv)
......@@ -62,17 +64,17 @@ There are two versions of MMCV:
Before installing mmcv, make sure that PyTorch has been successfully installed following the [PyTorch official installation guide](https://github.com/pytorch/pytorch#installation). For apple silicon users, please use PyTorch 1.13+.
The command to install mmcv on Linux or Windows platforms is as follows (if your system is macOS, please refer to [build mmcv from source](https://mmcv.readthedocs.io/en/2.x/get_started/build.html#macos-mmcv))
The command to install mmcv:
```bash
pip install -U openmim
mim install "mmcv>=2.0.0rc1"
```
If you need to specify the version of mmcv, you can use the following command
If you need to specify the version of mmcv, you can use the following command:
```bash
mim install mmcv==2.0.0rc1
mim install mmcv==2.0.0rc3
```
If you find that the above installation command does not use a pre-built package ending with `.whl` but a source package ending with `.tar.gz`, you may not have a pre-build package corresponding to the PyTorch or CUDA or mmcv version, in which case you can [build mmcv from source](https://mmcv.readthedocs.io/en/2.x/get_started/build.html).
......@@ -82,7 +84,7 @@ If you find that the above installation command does not use a pre-built package
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html<br />
Collecting mmcv<br />
<b>Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv-2.0.0rc1-cp38-cp38-manylinux1_x86_64.whl</b>
<b>Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv-2.0.0rc3-cp38-cp38-manylinux1_x86_64.whl</b>
</details>
......@@ -90,8 +92,8 @@ Collecting mmcv<br />
<summary>Installation log using source packages</summary>
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html<br />
Collecting mmcv==2.0.0rc1<br />
<b>Downloading mmcv-2.0.0rc1.tar.gz</b>
Collecting mmcv==2.0.0rc3<br />
<b>Downloading mmcv-2.0.0rc3.tar.gz</b>
</details>
......
......@@ -22,6 +22,8 @@
[![docs](https://img.shields.io/badge/docs-2.x-blue)](https://mmcv.readthedocs.io/zh_CN/2.x/)
[![platform](https://img.shields.io/badge/platform-Linux%7CWindows%7CmacOS-blue)](https://mmcv.readthedocs.io/zh_CN/2.x/get_started/installation.html)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mmcv)](https://pypi.org/project/mmcv/)
[![pytorch](https://img.shields.io/badge/pytorch-1.6~1.13-orange)](https://pytorch.org/get-started/previous-versions/)
[![cuda](https://img.shields.io/badge/cuda-9.2~11.7-green)](https://developer.nvidia.com/cuda-downloads)
[![PyPI](https://img.shields.io/pypi/v/mmcv)](https://pypi.org/project/mmcv)
[![badge](https://github.com/open-mmlab/mmcv/workflows/build/badge.svg)](https://github.com/open-mmlab/mmcv/actions)
[![codecov](https://codecov.io/gh/open-mmlab/mmcv/branch/master/graph/badge.svg)](https://codecov.io/gh/open-mmlab/mmcv)
......@@ -62,7 +64,7 @@ MMCV 有两个版本:
在安装 mmcv 之前,请确保 PyTorch 已经成功安装在环境中,可以参考 [PyTorch 官方安装文档](https://github.com/pytorch/pytorch#installation)。如果你使用的是搭载 apple silicon 的 mac 设备,请安装 PyTorch 1.13+ 的版本。
在 Linux 和 Windows 平台安装 mmcv 的命令如下(如果你的系统是 macOS,请参考[源码安装 mmcv](https://mmcv.readthedocs.io/zh_CN/2.x/get_started/build.html#macos-mmcv)
安装 mmcv 的命令如下:
```bash
pip install -U openmim
......@@ -72,7 +74,7 @@ mim install "mmcv>=2.0.0rc1"
如果需要指定 mmcv 的版本,可以使用以下命令
```bash
mim install mmcv==2.0.0rc1
mim install mmcv==2.0.0rc3
```
如果发现上述的安装命令没有使用预编译包(以 `.whl` 结尾)而是使用源码包(以 `.tar.gz` 结尾)安装,则有可能是我们没有提供和当前环境的 PyTorch 版本、CUDA 版本相匹配的 mmcv 预编译包,此时,你可以[源码安装 mmcv](https://mmcv.readthedocs.io/zh_CN/2.x/get_started/build.html)
......@@ -82,7 +84,7 @@ mim install mmcv==2.0.0rc1
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html<br />
Collecting mmcv<br />
<b>Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv-2.0.0rc1-cp38-cp38-manylinux1_x86_64.whl</b>
<b>Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv-2.0.0rc3-cp38-cp38-manylinux1_x86_64.whl</b>
</details>
......@@ -90,8 +92,8 @@ Collecting mmcv<br />
<summary>使用源码包的安装日志</summary>
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html<br />
Collecting mmcv==2.0.0rc1<br />
<b>Downloading mmcv-2.0.0rc1.tar.gz</b>
Collecting mmcv==2.0.0rc3<br />
<b>Downloading mmcv-2.0.0rc3.tar.gz</b>
</details>
......
{
"Linux": [
{
"cuda": "11.7",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "11.6",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "11.6",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -11,6 +27,8 @@
"cuda": "11.5",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -18,6 +36,8 @@
"cuda": "11.3",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -25,6 +45,8 @@
"cuda": "11.3",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -32,6 +54,8 @@
"cuda": "11.3",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -39,6 +63,8 @@
"cuda": "11.1",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -46,6 +72,8 @@
"cuda": "11.1",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -53,6 +81,8 @@
"cuda": "11.1",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -60,6 +90,8 @@
"cuda": "11.0",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -67,6 +99,8 @@
"cuda": "10.2",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -74,6 +108,8 @@
"cuda": "10.2",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -81,6 +117,8 @@
"cuda": "10.2",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -88,6 +126,8 @@
"cuda": "10.2",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -95,6 +135,8 @@
"cuda": "10.2",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -102,6 +144,8 @@
"cuda": "10.2",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -109,6 +153,8 @@
"cuda": "10.2",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -116,6 +162,8 @@
"cuda": "10.1",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -123,6 +171,8 @@
"cuda": "10.1",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -130,6 +180,8 @@
"cuda": "10.1",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -137,6 +189,8 @@
"cuda": "9.2",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -144,13 +198,24 @@
"cuda": "9.2",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
{
"cuda": "cpu",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "cpu",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -158,6 +223,8 @@
"cuda": "cpu",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -165,6 +232,8 @@
"cuda": "cpu",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -172,6 +241,8 @@
"cuda": "cpu",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -179,6 +250,8 @@
"cuda": "cpu",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -186,6 +259,8 @@
"cuda": "cpu",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -193,15 +268,33 @@
"cuda": "cpu",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
}
],
"Windows": [
{
"cuda": "11.7",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "11.6",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "11.6",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -209,6 +302,8 @@
"cuda": "11.5",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -216,6 +311,8 @@
"cuda": "11.3",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -223,6 +320,8 @@
"cuda": "11.3",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -230,6 +329,8 @@
"cuda": "11.3",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -237,6 +338,8 @@
"cuda": "11.1",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -244,6 +347,8 @@
"cuda": "11.1",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -251,6 +356,8 @@
"cuda": "11.1",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -258,6 +365,8 @@
"cuda": "10.2",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -265,6 +374,8 @@
"cuda": "10.2",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -272,13 +383,24 @@
"cuda": "10.2",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
{
"cuda": "10.2",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "10.2",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -286,20 +408,40 @@
"cuda": "10.1",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
{
"cuda": "10.1",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "10.1",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
{
"cuda": "cpu",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "cpu",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -307,6 +449,8 @@
"cuda": "cpu",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -314,6 +458,8 @@
"cuda": "cpu",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -321,6 +467,8 @@
"cuda": "cpu",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -328,6 +476,8 @@
"cuda": "cpu",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -335,6 +485,8 @@
"cuda": "cpu",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -342,8 +494,82 @@
"cuda": "cpu",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
}
],
"macOS": [
{
"cuda": "cpu",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "mps",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "cpu",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
}
]
}
......@@ -11,11 +11,7 @@ Do not install both versions in the same environment, otherwise you may encounte
### Install mmcv
```{note}
The following installation steps are for Linux and Windows platforms only. To install mmcv on macOS platform, please refer to [build mmcv from source](build.md#build-on-macos).
```
Before installing mmcv-full, make sure that PyTorch has been successfully installed following the [PyTorch official installation guide](https://pytorch.org/get-started/locally/#start-locally). This can be verified using the following command
Before installing mmcv, make sure that PyTorch has been successfully installed following the [PyTorch official installation guide](https://pytorch.org/get-started/locally/#start-locally). This can be verified using the following command
```bash
python -c 'import torch;print(torch.__version__)'
......@@ -39,7 +35,7 @@ If you find that the above installation command does not use a pre-built package
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html<br />
Collecting mmcv<br />
<b>Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv-2.0.0rc1-cp38-cp38-manylinux1_x86_64.whl</b>
<b>Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv-2.0.0rc3-cp38-cp38-manylinux1_x86_64.whl</b>
</details>
......@@ -47,15 +43,15 @@ Collecting mmcv<br />
<summary>Installation log using source packages</summary>
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html<br />
Collecting mmcv==2.0.0rc1<br />
<b>Downloading mmcv-2.0.0rc1.tar.gz</b>
Collecting mmcv==2.0.0rc3<br />
<b>Downloading mmcv-2.0.0rc3.tar.gz</b>
</details>
To install a specific version of mmcv, for example, mmcv version 2.0.0rc1, you can use the following command
To install a specific version of mmcv, for example, mmcv version 2.0.0rc3, you can use the following command
```bash
mim install mmcv==2.0.0rc1
mim install mmcv==2.0.0rc3
```
:::{note}
......@@ -66,7 +62,7 @@ you can first install it before installing MMCV to skip the installation of `ope
Alternatively, if it takes too long to install a dependency library, you can specify the pypi source
```bash
mim install "mmcv>=2.0.0rc1" -i https://pypi.tuna.tsinghua.edu.cn/simple
mim install "mmcv>=2.0.0rc3" -i https://pypi.tuna.tsinghua.edu.cn/simple
```
:::
......@@ -193,7 +189,12 @@ Select the appropriate installation command depending on the type of system, CUD
const cmd = document.getElementById("select-cmd");
let cmdString = "pip install mmcv=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/{cu_version}/{torch_version}/index.html";
// e.g: pip install mmcv==2.0.0rc1 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9/index.html
const cudaVersion = `${cudaVal === "cpu" ? cudaVal : `cu${cudaVal.split(".").join("")}`}`;
let cudaVersion;
if (cudaVal === "cpu" || cudaVal === "mps") {
cudaVersion = "cpu";
} else {
cudaVersion = `cu${cudaVal.split(".").join("")}`;
}
const torchVersion = `torch${torchVal.substring(0, torchVal.length - 2)}`;
cmdString = cmdString.replace("{cu_version}", cudaVersion).replace("{mmcv_version}", mmcvVal).replace("{torch_version}", torchVersion);
cmd.textContent = cmdString;
......@@ -208,7 +209,7 @@ Select the appropriate installation command depending on the type of system, CUD
data.forEach(option => {
const ele = document.createElement("option");
let text = `${name} ${option}`;
if (name === "os" || option.toUpperCase() === "CPU") {
if (name === "os" || option.toUpperCase() === "CPU" || option.toUpperCase() === "MPS") {
text = `${option}`;
}
ele.textContent = text;
......
{
"Linux": [
{
"cuda": "11.7",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "11.6",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "11.6",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -11,6 +27,8 @@
"cuda": "11.5",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -18,6 +36,8 @@
"cuda": "11.3",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -25,6 +45,8 @@
"cuda": "11.3",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -32,6 +54,8 @@
"cuda": "11.3",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -39,6 +63,8 @@
"cuda": "11.1",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -46,6 +72,8 @@
"cuda": "11.1",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -53,6 +81,8 @@
"cuda": "11.1",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -60,6 +90,8 @@
"cuda": "11.0",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -67,6 +99,8 @@
"cuda": "10.2",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -74,6 +108,8 @@
"cuda": "10.2",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -81,6 +117,8 @@
"cuda": "10.2",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -88,6 +126,8 @@
"cuda": "10.2",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -95,6 +135,8 @@
"cuda": "10.2",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -102,6 +144,8 @@
"cuda": "10.2",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -109,6 +153,8 @@
"cuda": "10.2",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -116,6 +162,8 @@
"cuda": "10.1",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -123,6 +171,8 @@
"cuda": "10.1",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -130,6 +180,8 @@
"cuda": "10.1",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -137,6 +189,8 @@
"cuda": "9.2",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -144,13 +198,24 @@
"cuda": "9.2",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
{
"cuda": "cpu",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "cpu",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -158,6 +223,8 @@
"cuda": "cpu",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -165,6 +232,8 @@
"cuda": "cpu",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -172,6 +241,8 @@
"cuda": "cpu",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -179,6 +250,8 @@
"cuda": "cpu",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -186,6 +259,8 @@
"cuda": "cpu",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -193,15 +268,33 @@
"cuda": "cpu",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
}
],
"Windows": [
{
"cuda": "11.7",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "11.6",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "11.6",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -209,6 +302,8 @@
"cuda": "11.5",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -216,6 +311,8 @@
"cuda": "11.3",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -223,6 +320,8 @@
"cuda": "11.3",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -230,6 +329,8 @@
"cuda": "11.3",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -237,6 +338,8 @@
"cuda": "11.1",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -244,6 +347,8 @@
"cuda": "11.1",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -251,6 +356,8 @@
"cuda": "11.1",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -258,6 +365,8 @@
"cuda": "10.2",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -265,6 +374,8 @@
"cuda": "10.2",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -272,13 +383,24 @@
"cuda": "10.2",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
{
"cuda": "10.2",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "10.2",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -286,20 +408,40 @@
"cuda": "10.1",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
{
"cuda": "10.1",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "10.1",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
{
"cuda": "cpu",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "cpu",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -307,6 +449,8 @@
"cuda": "cpu",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -314,6 +458,8 @@
"cuda": "cpu",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -321,6 +467,8 @@
"cuda": "cpu",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -328,6 +476,8 @@
"cuda": "cpu",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -335,6 +485,8 @@
"cuda": "cpu",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
},
......@@ -342,8 +494,82 @@
"cuda": "cpu",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2",
"2.0.0rc1"
]
}
],
"macOS": [
{
"cuda": "cpu",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "mps",
"torch": "1.13.x",
"mmcv": [
"2.0.0rc3"
]
},
{
"cuda": "cpu",
"torch": "1.12.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.11.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.10.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.9.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.8.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.7.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
},
{
"cuda": "cpu",
"torch": "1.6.x",
"mmcv": [
"2.0.0rc3",
"2.0.0rc2"
]
}
]
}
......@@ -11,10 +11,6 @@ MMCV 有两个版本:
### 安装 mmcv
```{note}
下述安装步骤仅适用于 Linux 和 Windows 平台,如需在 macOS 平台安装 mmcv,请参考[源码安装 mmcv](build.md#在-macos-上编译-mmcv)。
```
在安装 mmcv 之前,请确保 PyTorch 已经成功安装在环境中,可以参考 [PyTorch 官方安装文档](https://pytorch.org/get-started/locally/#start-locally)。可使用以下命令验证
```bash
......@@ -39,7 +35,7 @@ mim install "mmcv>=2.0.0rc1"
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html<br />
Collecting mmcv<br />
<b>Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv-2.0.0rc1-cp38-cp38-manylinux1_x86_64.whl</b>
<b>Downloading https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/mmcv-2.0.0rc3-cp38-cp38-manylinux1_x86_64.whl</b>
</details>
......@@ -47,15 +43,15 @@ Collecting mmcv<br />
<summary>使用源码包的安装日志</summary>
Looking in links: https://download.openmmlab.com/mmcv/dist/cu102/torch1.8.0/index.html<br />
Collecting mmcv==2.0.0rc1<br />
<b>Downloading mmcv-2.0.0rc1.tar.gz</b>
Collecting mmcv==2.0.0rc3<br />
<b>Downloading mmcv-2.0.0rc3.tar.gz</b>
</details>
如需安装指定版本的 mmcv,例如安装 2.0.0rc1 版本的 mmcv,可使用以下命令
如需安装指定版本的 mmcv,例如安装 2.0.0rc3 版本的 mmcv,可使用以下命令
```bash
mim install mmcv==2.0.0rc1
mim install mmcv==2.0.0rc3
```
:::{note}
......@@ -194,7 +190,12 @@ python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
const cmd = document.getElementById("select-cmd");
let cmdString = "pip install mmcv=={mmcv_version} -f https://download.openmmlab.com/mmcv/dist/{cu_version}/{torch_version}/index.html";
// e.g: pip install mmcv==2.0.0rc1 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9/index.html
const cudaVersion = `${cudaVal === "cpu" ? cudaVal : `cu${cudaVal.split(".").join("")}`}`;
let cudaVersion;
if (cudaVal === "cpu" || cudaVal === "mps") {
cudaVersion = "cpu";
} else {
cudaVersion = `cu${cudaVal.split(".").join("")}`;
}
const torchVersion = `torch${torchVal.substring(0, torchVal.length - 2)}`;
cmdString = cmdString.replace("{cu_version}", cudaVersion).replace("{mmcv_version}", mmcvVal).replace("{torch_version}", torchVersion);
cmd.textContent = cmdString;
......@@ -211,7 +212,7 @@ python -c 'import torch;print(torch.__version__);print(torch.version.cuda)'
data.forEach(option => {
const ele = document.createElement("option");
let text = `${name} ${option}`;
if (name === "os" || option.toUpperCase() === "CPU") {
if (name === "os" || option.toUpperCase() === "CPU" || option.toUpperCase() === "MPS") {
text = `${option}`;
}
ele.textContent = text;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment