Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
020f1f78
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看板
提交
020f1f78
编写于
10月 27, 2017
作者:
P
peterzhang2029
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename the model config file
上级
672e8565
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
4 deletion
+7
-4
scene_text_recognition/infer.py
scene_text_recognition/infer.py
+1
-1
scene_text_recognition/network_conf.py
scene_text_recognition/network_conf.py
+5
-2
scene_text_recognition/train.py
scene_text_recognition/train.py
+1
-1
未找到文件。
scene_text_recognition/infer.py
浏览文件 @
020f1f78
...
@@ -2,7 +2,7 @@ import click
...
@@ -2,7 +2,7 @@ import click
import
gzip
import
gzip
import
paddle.v2
as
paddle
import
paddle.v2
as
paddle
from
model
import
Model
from
network_conf
import
Model
from
reader
import
DataGenerator
from
reader
import
DataGenerator
from
decoder
import
ctc_greedy_decoder
from
decoder
import
ctc_greedy_decoder
from
utils
import
get_file_list
,
load_dict
,
load_reverse_dict
from
utils
import
get_file_list
,
load_dict
,
load_reverse_dict
...
...
scene_text_recognition/
model
.py
→
scene_text_recognition/
network_conf
.py
浏览文件 @
020f1f78
...
@@ -13,7 +13,8 @@ class Model(object):
...
@@ -13,7 +13,8 @@ class Model(object):
:type num_classes: int
:type num_classes: int
:param shape: The size of the input images.
:param shape: The size of the input images.
:type shape: tuple of 2 int
:type shape: tuple of 2 int
:param is_infer: For inference or not
:param is_infer: The boolean parameter indicating
inferring or training.
:type shape: bool
:type shape: bool
'''
'''
self
.
num_classes
=
num_classes
self
.
num_classes
=
num_classes
...
@@ -90,11 +91,13 @@ class Model(object):
...
@@ -90,11 +91,13 @@ class Model(object):
def
conv_groups
(
self
,
input
,
num
,
with_bn
):
def
conv_groups
(
self
,
input
,
num
,
with_bn
):
'''
'''
Get the image features with image convolution group.
:param input: Input layer.
:param input: Input layer.
:type input: LayerOutput
:type input: LayerOutput
:param num: Number of the filters.
:param num: Number of the filters.
:type num: int
:type num: int
:param with_bn:
Whether with batch normalization
.
:param with_bn:
Use batch normalization or not
.
:type with_bn: bool
:type with_bn: bool
'''
'''
assert
num
%
4
==
0
assert
num
%
4
==
0
...
...
scene_text_recognition/train.py
浏览文件 @
020f1f78
...
@@ -4,7 +4,7 @@ import click
...
@@ -4,7 +4,7 @@ import click
import
paddle.v2
as
paddle
import
paddle.v2
as
paddle
from
config
import
TrainerConfig
as
conf
from
config
import
TrainerConfig
as
conf
from
model
import
Model
from
network_conf
import
Model
from
reader
import
DataGenerator
from
reader
import
DataGenerator
from
utils
import
get_file_list
,
build_label_dict
,
load_dict
from
utils
import
get_file_list
,
build_label_dict
,
load_dict
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录