Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Replace pytorch install command to conda in README(_zh-CN).md #816

Merged
merged 5 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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