[Docs] Add brief installation steps in README for copy&paste. (#755)

* [Docs] Add breif installation code for copy&paste.

* minor fix
pull/756/head
Hubert 2022-03-30 19:16:45 +08:00 committed by GitHub
parent a87ff7e153
commit 34dd3288ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 2 deletions

View File

@ -77,7 +77,19 @@ Please refer to [changelog.md](docs/en/changelog.md) for more details and other
## Installation
Please refer to [install.md](https://mmclassification.readthedocs.io/en/latest/install.html) for installation and dataset preparation.
Below are quick steps for installation:
```shell
conda create -n open-mmlab python=3.8 pytorch=1.10 cudatoolkit=11.3 torchvision -c pytorch -y
conda activate open-mmlab
pip3 install openmim
mim install mmcv-full
git clone https://github.com/open-mmlab/mmclassification.git
cd mmclassification
pip3 install -e .
```
Please refer to [install.md](https://mmclassification.readthedocs.io/en/latest/install.html) for more detailed installation and dataset preparation.
## Getting Started

View File

@ -75,7 +75,19 @@ MMClassification 是一款基于 PyTorch 的开源图像分类工具箱,是 [O
## 安装
请参考 [安装指南](https://mmclassification.readthedocs.io/zh_CN/latest/install.html) 进行安装
以下是安装的简要步骤:
```shell
conda create -n open-mmlab python=3.8 pytorch=1.10 cudatoolkit=11.3 torchvision -c pytorch -y
conda activate open-mmlab
pip3 install openmim
mim install mmcv-full
git clone https://github.com/open-mmlab/mmclassification.git
cd mmclassification
pip3 install -e .
```
更详细的步骤请参考 [安装指南](https://mmclassification.readthedocs.io/zh_CN/latest/install.html) 进行安装。
## 基础教程