Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
9c79d998
M
models
项目概览
PaddlePaddle
/
models
1 年多 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9c79d998
编写于
12月 20, 2018
作者:
R
ruri
提交者:
whs
12月 20, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix OCR typo (#1547)
上级
88585d6f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
fluid/PaddleCV/ocr_recognition/README.md
fluid/PaddleCV/ocr_recognition/README.md
+4
-4
未找到文件。
fluid/PaddleCV/ocr_recognition/README.md
浏览文件 @
9c79d998
...
...
@@ -80,7 +80,7 @@
在训练时,我们通过选项
`--train_images`
和
`--train_list`
分别设置准备好的
`train_images`
和
`train_list`
。
>**注:** 如果`--train_images` 和 `--train_list`都未设置或设置为None,
ctc_
reader.py会自动下载使用[示例数据](http://paddle-ocr-data.bj.bcebos.com/data.tar.gz),并将其缓存到`$HOME/.cache/paddle/dataset/ctc_data/data/` 路径下。
>**注:** 如果`--train_images` 和 `--train_list`都未设置或设置为None, reader.py会自动下载使用[示例数据](http://paddle-ocr-data.bj.bcebos.com/data.tar.gz),并将其缓存到`$HOME/.cache/paddle/dataset/ctc_data/data/` 路径下。
**B. 测试集和评估集**
...
...
@@ -119,17 +119,17 @@ data/test_images/00003.jpg
使用默认数据在GPU单卡上训练:
```
env CUDA_VISIBLE_DEVICES=0 python
ctc_
train.py
env CUDA_VISIBLE_DEVICES=0 python train.py
```
使用默认数据在CPU上训练:
```
env OMP_NUM_THREADS=<num_of_physical_cores> python
ctc_
train.py --use_gpu False --parallel=False
env OMP_NUM_THREADS=<num_of_physical_cores> python train.py --use_gpu False --parallel=False
```
使用默认数据在GPU多卡上训练:
```
env CUDA_VISIBLE_DEVICES=0,1,2,3 python
ctc_
train.py --parallel=True
env CUDA_VISIBLE_DEVICES=0,1,2,3 python train.py --parallel=True
```
默认使用的是
`CTC model`
, 可以通过选项
`--model="attention"`
切换为
`attention model`
。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录