From d746990614e7f1490bb493e5e4cd679cfba35113 Mon Sep 17 00:00:00 2001 From: huyingfan Date: Wed, 30 Mar 2022 17:28:37 +0800 Subject: [PATCH 1/2] [Docs] Add breif installation code for copy&paste. --- README.md | 14 +++++++++++++- README_zh-CN.md | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 92215524226..0fd14863539 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_zh-CN.md b/README_zh-CN.md index 94469416ad5..cdf9ad4d72d 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -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) 进行安装。 ## 基础教程 From 1c0afc9ba18b55d3f81a5670ed5de5f4544b1f06 Mon Sep 17 00:00:00 2001 From: huyingfan Date: Wed, 30 Mar 2022 17:33:11 +0800 Subject: [PATCH 2/2] minor fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0fd14863539..ecee88a6dd5 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ Please refer to [changelog.md](docs/en/changelog.md) for more details and other ## Installation -Below are quick steps for installation. +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