Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
6b208bcd
Commit
6b208bcd
authored
Jun 05, 2020
by
tink2123
Browse files
fix typo
parent
0cc083f6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
9 deletions
+15
-9
README.md
README.md
+2
-1
configs/rec/rec_benchmark_reader.yml
configs/rec/rec_benchmark_reader.yml
+1
-1
configs/rec/rec_icdar15_train.yml
configs/rec/rec_icdar15_train.yml
+4
-4
configs/rec/rec_mv3_tps_bilstm_attn.yml
configs/rec/rec_mv3_tps_bilstm_attn.yml
+3
-3
doc/detection.md
doc/detection.md
+3
-0
doc/recognition.md
doc/recognition.md
+2
-0
No files found.
README.md
View file @
6b208bcd
...
...
@@ -36,7 +36,8 @@ PaddleOCR旨在打造一套丰富、领先、且实用的OCR工具库,助力
#### 2.inference模型下载
*windows 环境下没有如果没有安装wget,下载模型时可将链接复制到浏览器中下载,并解压放置在相应目录下*
*windows 环境下如果没有安装wget,下载模型时可将链接复制到浏览器中下载,并解压放置在相应目录下*
#### (1)超轻量级中文OCR模型下载
```
...
...
configs/rec/rec_benchmark_reader.yml
View file @
6b208bcd
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
...
...
configs/rec/rec_icdar15_train.yml
View file @
6b208bcd
Global
:
algorithm
:
CRNN
use_gpu
:
fals
e
use_gpu
:
tru
e
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
:
2
56
test_batch_size_per_card
:
2
56
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
:
...
...
configs/rec/rec_mv3_tps_bilstm_attn.yml
View file @
6b208bcd
Global
:
algorithm
:
RARE
use_gpu
:
fals
e
use_gpu
:
tru
e
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
:
2
56
test_batch_size_per_card
:
2
56
image_shape
:
[
3
,
32
,
100
]
max_text_length
:
25
character_type
:
en
...
...
doc/detection.md
View file @
6b208bcd
...
...
@@ -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
```
...
...
doc/recognition.md
View file @
6b208bcd
...
...
@@ -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:.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment