Skip to content

Commit

Permalink
修改README
Browse files Browse the repository at this point in the history
  • Loading branch information
Xv-M-S committed Nov 21, 2024
1 parent f8e8c43 commit 2cd9806
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
13 changes: 6 additions & 7 deletions examples/license_plate_detection_and_recognition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ conda create -n mindspore2.2.14_mindocr python=3.9

2. [Installing MindSpore 2.2.14](https://www.mindspore.cn/install/)

![image](pic/install_mindspore.png)
Based on the MindSpore official website guidelines, select the MindSpore installation package that is compatible with the current environment.

```shell
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.2.14/MindSpore/unified/x86_64/mindspore-2.2.14-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
Expand Down Expand Up @@ -233,16 +233,16 @@ def __init__(self, min_iou: float = 0.7, min_intersect: float = 0.5):
## Train

```shell
# Single GPU Training (May Cause Memory Issues)
python tools/train.py --config configs/det/dbnet/db_r50_ccpd.yaml --device_target GPU
# Multi-GPU Training (Requires Correct OpenMPI Installation and Root Privileges)
mpirun --allow-run-as-root -n 2 python tools/train.py --config configs/det/dbnet/db_r50_ccpd.yaml --device_target GPU
# Single Ascend Training (May Cause Memory Issues)
python tools/train.py --config configs/det/dbnet/db_r50_ccpd.yaml
# Multi-Ascend Training (Requires Correct OpenMPI Installation and Root Privileges)
mpirun --allow-run-as-root -n 2 python tools/train.py --config configs/det/dbnet/db_r50_ccpd.yaml
```

## Test

```shell
python tools/eval.py -c=configs/det/dbnet/db_r50_ccpd.yaml --device_target GPU
python tools/eval.py -c=configs/det/dbnet/db_r50_ccpd.yaml
```

Validation set test results:
Expand Down Expand Up @@ -371,7 +371,6 @@ metric:
## Train

```shell
# Single GPU/CPU/Ascend Training
python tools/train.py --config configs/rec/svtr/svtr_tiny_ccpd.yaml
```

Expand Down
10 changes: 4 additions & 6 deletions examples/license_plate_detection_and_recognition/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ conda create -n mindspore2.2.14_mindocr python=3.9

2. [安装MindSpore 2.2.14](https://www.mindspore.cn/install/)

选择mindspore的版本为2.2.14,以及适配的CUDA版本获取安装命令
根据mindspore官网指引,选择适配当前环境的mindspore安装包

![image](pic/install_mindspore.png)

```txt
pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.2.14/MindSpore/unified/x86_64/mindspore-2.2.14-cp39-cp39-linux_x86_64.whl --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple
Expand Down Expand Up @@ -240,15 +239,15 @@ def __init__(self, min_iou: float = 0.7, min_intersect: float = 0.5):

```txt
# 单卡训练,容易爆内存
python tools/train.py --config configs/det/dbnet/db_r50_ccpd.yaml --device_target GPU
python tools/train.py --config configs/det/dbnet/db_r50_ccpd.yaml
# 多卡训练,需要正确安装opemmpi和使用root权限
mpirun --allow-run-as-root -n 2 python tools/train.py --config configs/det/dbnet/db_r50_ccpd.yaml --device_target GPU
mpirun --allow-run-as-root -n 2 python tools/train.py --config configs/det/dbnet/db_r50_ccpd.yaml
```

## 测试

```txt
python tools/eval.py -c=configs/det/dbnet/db_r50_ccpd.yaml --device_target GPU
python tools/eval.py -c=configs/det/dbnet/db_r50_ccpd.yaml
```

验证集测试结果:
Expand Down Expand Up @@ -377,7 +376,6 @@ metric:
## 训练

```txt
# CPU/GPU/Ascend 设备上的单卡训练
python tools/train.py --config configs/rec/svtr/svtr_tiny_ccpd.yaml
```

Expand Down
Binary file not shown.

0 comments on commit 2cd9806

Please sign in to comment.