Skip to content

Commit

Permalink
[Docs] Replace pytorch install command to conda in README(_zh-CN).md (o…
Browse files Browse the repository at this point in the history
…pen-mmlab#816)

* replace pytorch install command

* add conda activate

* add -y for conda create

* create conda enviromnet

* merge all commands together
  • Loading branch information
wangruohui authored Mar 30, 2022
1 parent 17881f8 commit 6a8c4d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 38 deletions.
24 changes: 5 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,32 +89,18 @@ Please refer to [changelog.md](docs/en/changelog.md) for details and release his

MMEditing depends on [PyTorch](https://pytorch.org/) and [MMCV](https://github.com/open-mmlab/mmcv).
Below are quick steps for installation.
Please refer to [install.md](docs/en/install.rst) for more detailed instruction.

**Step 1.**
Install PyTorch following [official instructions](https://pytorch.org/get-started/locally/), e.g.

```
pip3 install torch torchvision
```

**Step 2.**
Install MMCV with [MIM](https://github.com/open-mmlab/mim).

```
```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
```

**Step 3.**
Install MMEditing from source.

```
git clone https://github.com/open-mmlab/mmediting.git
cd mmediting
pip3 install -e .[all]
pip3 install -e .
```

Please refer to [install.md](docs/en/install.rst) for more detailed instruction.

## Getting Started

Expand Down
24 changes: 5 additions & 19 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,32 +86,18 @@ MMEditing 缜密地设计新的框架并将其精心实现,希望能够为您
## 安装

MMEditing 依赖 [PyTorch](https://pytorch.org/)[MMCV](https://github.com/open-mmlab/mmcv),以下是安装的简要步骤。
更详细的安装指南请参考 [install.md](docs/en/install.rst)

**步骤 1.**
依照[官方教程](https://pytorch.org/get-started/locally/)安装PyTorch,例如

```
pip3 install torch torchvision
```

**步骤 2.**
使用 [MIM](https://github.com/open-mmlab/mim) 安装 MMCV

```
```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
```

**步骤 3.**
从源码安装 MMEditing

```
git clone https://github.com/open-mmlab/mmediting.git
cd mmediting
pip3 install -e .[all]
pip3 install -e .
```

更详细的安装指南请参考 [install.md](docs/en/install.rst) .

## 开始使用

Expand Down

0 comments on commit 6a8c4d4

Please sign in to comment.