Skip to content

update readme for dependency version #123

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

Merged
merged 1 commit into from
Mar 29, 2023
Merged
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
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ To install the dependency, please run
pip install -r requirements.txt
```

Additionaly, please install MindSpore(>=1.8.1) following the official [instructions](https://www.mindspore.cn/install) for the best fit of your machine. To enable training in distributed mode, please also install [openmpi](https://www.open-mpi.org/software/ompi/v4.0/).
Additionally, please install MindSpore(>=1.9) following the official [instructions](https://www.mindspore.cn/install) for the best fit of your machine.

For distributed training, please install [openmpi 4.0.3](https://www.open-mpi.org/software/ompi/v4.0/).


### Install with PyPI
Expand Down Expand Up @@ -111,7 +113,14 @@ python tools/train.py --config configs/det/dbnet/db_r50_icdar15.yaml
To train in distributed mode, please run

```shell
# n is the number of GPUs/NPUs
# Distributed training on Ascends
mpirun --allow-run-as-root -n 8 python tools/train.py --config configs/det/dbnet/db_r50_icdar15.yaml
```

```shell
# Distributed training on GPUs
export CUDA_VISIBLE_DEVICES=0,1
# n is the number of GPUs
mpirun --allow-run-as-root -n 2 python tools/train.py --config configs/det/dbnet/db_r50_icdar15.yaml
```
> Notes: please ensure the arg `distribute` in yaml file is set True
Expand Down Expand Up @@ -194,6 +203,11 @@ python tools/train.py --config configs/rec/crnn/crnn_resnet34.yaml

To train in distributed mode, please run

```shell
# Distributed training on Ascends
mpirun --allow-run-as-root -n 8 python tools/train.py --config configs/rec/crnn/crnn_resnet34.yaml
```

```shell
# n is the number of GPUs/NPUs
mpirun --allow-run-as-root -n 2 python tools/train.py --config configs/rec/crnn/crnn_resnet34.yaml
Expand Down