Skip to content

Commit 31e21c0

Browse files
HIT-cwhcaoweihan
and
caoweihan
authoredMar 31, 2022
[Docs] Add brief installation steps in README(_zh-CN).md (#121)
* Add brief installation * add brief installtion ref to mmediting pr#816 Co-authored-by: caoweihan <caoweihan@sensetime.com>
1 parent caa8187 commit 31e21c0

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
 

‎README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,19 @@ Results and models are available in the [model zoo](/docs/en/model_zoo.md).
7777

7878
## Installation
7979

80-
Please refer to [get_started.md](/docs/en/get_started.md) for installation.
80+
MMRazor depends on [PyTorch](https://pytorch.org/) and [MMCV](https://github.com/open-mmlab/mmcv).
81+
Below are quick steps for installation.
82+
Please refer to [get_started.md](/docs/en/get_started.md) for more detailed instruction.
83+
84+
```shell
85+
conda create -n open-mmlab python=3.8 pytorch=1.10 cudatoolkit=11.3 torchvision -c pytorch -y
86+
conda activate open-mmlab
87+
pip3 install openmim
88+
mim install mmcv-full
89+
git clone https://github.com/open-mmlab/mmrazor.git
90+
cd mmrazor
91+
pip install -v -e . # or "python setup.py develop"
92+
```
8193

8294
## Getting Started
8395
Please refer to [train.md](/docs/en/train.md) and [test.md](/docs/en/test.md) for the basic usage of MMRazor. There are also tutorials:

‎README_zh-CN.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,18 @@ v0.1.0 版本已经在 2021.12.23 发布
103103

104104
## 安装
105105

106-
请参考 [get_started.md](/docs/en/get_started.md) 进行安装。
106+
MMRazor 依赖 [PyTorch](https://pytorch.org/)[MMCV](https://github.com/open-mmlab/mmcv),以下是安装的简要步骤。
107+
更详细的安装指南请参考 [get_started.md](/docs/en/get_started.md)
108+
109+
```shell
110+
conda create -n open-mmlab python=3.8 pytorch=1.10 cudatoolkit=11.3 torchvision -c pytorch -y
111+
conda activate open-mmlab
112+
pip3 install openmim
113+
mim install mmcv-full
114+
git clone https://github.com/open-mmlab/mmrazor.git
115+
cd mmrazor
116+
pip install -v -e . # or "python setup.py develop"
117+
```
107118

108119
## 快速入门
109120
请参考 [get_started.md](/docs/en/get_started.md) 学习 MMRazor 的基本使用。 我们也提供了一些进阶教程:

0 commit comments

Comments
 (0)
Please sign in to comment.