From 6b208bcd7500e03a595cbf976dd1d7ac4262913f Mon Sep 17 00:00:00 2001 From: tink2123 Date: Fri, 5 Jun 2020 11:01:22 +0800 Subject: [PATCH] fix typo --- README.md | 3 ++- configs/rec/rec_benchmark_reader.yml | 2 +- configs/rec/rec_icdar15_train.yml | 8 ++++---- configs/rec/rec_mv3_tps_bilstm_attn.yml | 6 +++--- doc/detection.md | 3 +++ doc/recognition.md | 2 ++ 6 files changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 56e3f993..49b7c808 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,8 @@ PaddleOCR旨在打造一套丰富、领先、且实用的OCR工具库,助力 #### 2.inference模型下载 -*windows 环境下没有如果没有安装wget,下载模型时可将链接复制到浏览器中下载,并解压放置在相应目录下* +*windows 环境下如果没有安装wget,下载模型时可将链接复制到浏览器中下载,并解压放置在相应目录下* + #### (1)超轻量级中文OCR模型下载 ``` diff --git a/configs/rec/rec_benchmark_reader.yml b/configs/rec/rec_benchmark_reader.yml index ef4dd909..524f2f68 100755 --- a/configs/rec/rec_benchmark_reader.yml +++ b/configs/rec/rec_benchmark_reader.yml @@ -1,7 +1,7 @@ TrainReader: reader_function: ppocr.data.rec.dataset_traversal,LMDBReader num_workers: 8 - lmdb_sets_dir: ./train_data/data_lmdb_release/evaluation/ + lmdb_sets_dir: ./train_data/data_lmdb_release/training/ EvalReader: reader_function: ppocr.data.rec.dataset_traversal,LMDBReader diff --git a/configs/rec/rec_icdar15_train.yml b/configs/rec/rec_icdar15_train.yml index b3b22985..934a9410 100755 --- a/configs/rec/rec_icdar15_train.yml +++ b/configs/rec/rec_icdar15_train.yml @@ -1,20 +1,20 @@ Global: algorithm: CRNN - use_gpu: false + use_gpu: true epoch_num: 1000 log_smooth_window: 20 print_batch_step: 10 save_model_dir: ./output/rec_CRNN save_epoch_step: 300 eval_batch_step: 500 - train_batch_size_per_card: 2 - test_batch_size_per_card: 2 + train_batch_size_per_card: 256 + test_batch_size_per_card: 256 image_shape: [3, 32, 100] max_text_length: 25 character_type: en loss_type: ctc reader_yml: ./configs/rec/rec_icdar15_reader.yml - pretrain_weights: + pretrain_weights: ./pretrain_models/rec_mv3_none_bilstm_ctc/best_accuracy checkpoints: save_inference_dir: infer_img: diff --git a/configs/rec/rec_mv3_tps_bilstm_attn.yml b/configs/rec/rec_mv3_tps_bilstm_attn.yml index a9dbce6a..7fc4f679 100755 --- a/configs/rec/rec_mv3_tps_bilstm_attn.yml +++ b/configs/rec/rec_mv3_tps_bilstm_attn.yml @@ -1,14 +1,14 @@ Global: algorithm: RARE - use_gpu: false + use_gpu: true epoch_num: 72 log_smooth_window: 20 print_batch_step: 10 save_model_dir: output/rec_RARE save_epoch_step: 3 eval_batch_step: 2000 - train_batch_size_per_card: 2 - test_batch_size_per_card: 2 + train_batch_size_per_card: 256 + test_batch_size_per_card: 256 image_shape: [3, 32, 100] max_text_length: 25 character_type: en diff --git a/doc/detection.md b/doc/detection.md index 0fa32116..ab12dfe9 100644 --- a/doc/detection.md +++ b/doc/detection.md @@ -46,6 +46,9 @@ wget -P ./pretrain_models/ https://paddle-imagenet-models-name.bj.bcebos.com/Res ``` **启动训练** + +*如果您安装的是cpu版本,请将配置文件中的 `use_gpu` 字段修改为false* + ``` python3 tools/train.py -c configs/det/det_mv3_db.yml ``` diff --git a/doc/recognition.md b/doc/recognition.md index 7dd9ca7e..004487f9 100644 --- a/doc/recognition.md +++ b/doc/recognition.md @@ -113,6 +113,8 @@ tar -xf rec_mv3_none_bilstm_ctc.tar && rm -rf rec_mv3_none_bilstm_ctc.tar 开始训练: +*如果您安装的是cpu版本,请将配置文件中的 `use_gpu` 字段修改为false* + ``` # 设置PYTHONPATH路径 export PYTHONPATH=$PYTHONPATH:. -- GitLab