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 9706fe4 commit 1bfadf8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
20 changes: 17 additions & 3 deletions examples/license_plate_detection_and_recognition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Code repository: [https://github.com/detectRecog/CCPD](https://github.com/detect

## Dataset download

On the [CCPD official project website](https://github.com/detectRecog/CCPD), follow the instructions to download the dataset:
Download the dataset following the instructions on the [CCPD official project website](https://github.com/detectRecog/CCPD):

Unzip the dataset into the CCPD_Tutorial/datasets directory:

Expand Down Expand Up @@ -72,10 +72,17 @@ Split the ccpd_base dataset into training, testing, and validation datasets acco

## Requirements

### Ascend
|mindspore|ascend driver|firmware|cann toolkit/kernel|
| :---------: | :-------------: | :-----------: | :-------------------: |
|2.2.14|23.0.3|7.1.0.5.220|7.0.0.beta1|

### GPU

|mindspore|gpu driver|cuda version|firmware|
| :---------: | :----------: | :------------: | :----------------: |
|2.2.14|535.183.06|cuda11.6|RTX 4090|

## Installation steps

### Installation environment dependencies
Expand All @@ -88,7 +95,7 @@ conda create -n mindspore2.2.14_mindocr python=3.9

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

Based on the MindSpore official website guidelines, select the MindSpore installation package that is compatible with the current environment.
According to the guidelines on the [MindSpore official website](https://www.mindspore.cn/install/), install MindSpore version 2.2.14 along with the corresponding GPU or Ascend AI processor software packages.

3. [Install openmpi 4.0.3](https://www.open-mpi.org/software/ompi/v4.0/) (For distributed training and evaluation, if distributed training is not required, you can skip it)

Expand Down Expand Up @@ -131,7 +138,7 @@ make

## Install MindOCR

According to the version correspondence table, you should download version 0.3.
Based on the version compatibility between MindSpore and MindOCR, please download and install MindOCR version 0.3.

|mindocr|mindspore|
| :-------: | :---------: |
Expand Down Expand Up @@ -570,3 +577,10 @@ Experiments are tested on ascend 910* with mindspore 2.2.14 graph mode :
| :----------: | :-----: | :----------: | :----------: | :---------: | :-------------: | :------: | :------: |
|dbnet|1|16|640x640|O0|43.50s|0.26|61.59|
|svtr|1|256|64x256|O2|202.20s|0.77|331.70|

Experiments are tested on GeForce RTX 4090 with mindspore 2.2.14 graph mode :

|model name|cards|batch size|resolution|jit level|graph compile|s/step|img/s|
| :----------: | :-----: | :----------: | :----------: | :---------: | :-------------: | :------: | :------: |
|dbnet|1|16|640x640|O0|1.07s|1.86|29.76|
|svtr|1|64|64x256|O2|0.57s|5.62|359.68|
21 changes: 18 additions & 3 deletions examples/license_plate_detection_and_recognition/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## 数据集下载

[CCPD官方项目网址](https://github.com/detectRecog/CCPD)中,按照指引下载数据集
按照[CCPD官方项目网址](https://github.com/detectRecog/CCPD)的指引,下载数据集

解压数据集到CCPD_Tutorial/datasets目录下:

Expand Down Expand Up @@ -71,10 +71,18 @@ ads = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q'

## 环境要求

### Ascend

|mindspore|ascend driver|firmware|cann toolkit/kernel|
| :---------: | :-------------: | :-----------: | :-------------------: |
|2.2.14|23.0.3|7.1.0.5.220|7.0.0.beta1|

### GPU

|mindspore|gpu driver|cuda version|firmware|
| :---------: | :----------: | :------------: | :----------------: |
|2.2.14|535.183.06|cuda11.6| RTX 4090|

## 安装步骤

### 安装环境依赖
Expand All @@ -87,7 +95,7 @@ conda create -n mindspore2.2.14_mindocr python=3.9

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

根据mindspore官网指引,选择适配当前环境的mindspore安装包
按照[MindSpore官网](https://www.mindspore.cn/install/)指引,安装MindSpore 2.2.14版本及其配套的GPU或昇腾AI处理器配套软件包

3. [安装openmpi 4.0.3](https://www.open-mpi.org/software/ompi/v4.0/) (for distributed training/evaluation)【为了分布式的训练和评估,如不需要分布式训练,可跳过】

Expand Down Expand Up @@ -136,7 +144,7 @@ make

### 下载安装MindOCR

根据对应关系表,应该下载0.3版本的
根据MindSpore和MindOCR的版本配套关系,下载安装0.3版本的MindOCR

|mindocr|mindspore|
| :-------: | :---------: |
Expand Down Expand Up @@ -563,3 +571,10 @@ python tools/infer/text/predict_system.py --image_dir path/to/image_path or ima
| :----------: | :-----: | :----------: | :----------: | :---------: | :-------------: | :------: | :------: |
|dbnet|1|16|640x640|O0|43.50s|0.26|61.59|
|svtr|1|256|64x256|O2|202.20s|0.77|331.70|

实验在 GPU 上使用 MindSpore 2.2.14 的图模式进行测试:

|model name|cards|batch size|resolution|jit level|graph compile|s/step|img/s|
| :----------: | :-----: | :----------: | :----------: | :---------: | :-------------: | :------: | :------: |
|dbnet|1|16|640x640|O0|1.07s|1.86|29.76|
|svtr|1|64|64x256|O2|0.57s|5.62|359.68|

0 comments on commit 1bfadf8

Please sign in to comment.