Skip to content

Commit

Permalink
fix installation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis committed May 2, 2023
1 parent d676daf commit e0ef602
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ conda create -n openmmlab python=3.8 pytorch=1.10 cudatoolkit=11.3 torchvision -
conda activate openmmlab
pip3 install openmim
mim install mmcv-full
git clone https://github.com/open-mmlab/mmpose.git
git clone https://github.com/open-mmlab/mmpose.git -b 0.x
cd mmpose
pip3 install -e .
```
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ conda create -n openmmlab python=3.8 pytorch=1.10 cudatoolkit=11.3 torchvision -
conda activate openmmlab
pip3 install openmim
mim install mmcv-full
git clone https://github.com/open-mmlab/mmpose.git
git clone https://github.com/open-mmlab/mmpose.git -b 0.x
cd mmpose
pip3 install -e .
```
Expand Down
2 changes: 1 addition & 1 deletion docs/en/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ mim install mmcv-full
Case a: If you develop and run mmpose directly, install it from source:

```shell
git clone https://github.com/open-mmlab/mmpose.git
git clone https://github.com/open-mmlab/mmpose.git -b 0.x
cd mmpose
pip install -r requirements.txt
pip install -v -e .
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_cn/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ mim install mmcv-full
这种情况下,从源码按如下方式安装 mmpose:

```shell
git clone https://github.com/open-mmlab/mmpose.git
git clone https://github.com/open-mmlab/mmpose.git -b 0.x
cd mmpose
pip install -r requirements.txt
pip install -v -e .
Expand Down
6 changes: 5 additions & 1 deletion mmpose/datasets/pipelines/shared_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import warnings
from collections.abc import Sequence

import albumentations
import mmcv
import numpy as np
import torch
Expand All @@ -13,6 +12,11 @@

from ..builder import PIPELINES

try:
import albumentations
except ImportError:
albumentations = None


@PIPELINES.register_module()
class ToTensor:
Expand Down

0 comments on commit e0ef602

Please sign in to comment.