Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleOCR
提交
882e6e54
P
PaddleOCR
项目概览
s920243400
/
PaddleOCR
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleOCR
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleOCR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
882e6e54
编写于
4月 27, 2022
作者:
X
xiaoting
提交者:
GitHub
4月 27, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6071 from tink2123/fix_mkldnn
fix mkldnn for ppocrv3, and fix some typo
上级
bde50863
9f5d0d59
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
6 deletion
+7
-6
ppocr/data/imaug/label_ops.py
ppocr/data/imaug/label_ops.py
+3
-3
ppocr/utils/dict/ka_dict.txt
ppocr/utils/dict/ka_dict.txt
+1
-1
ppocr/utils/dict/ta_dict.txt
ppocr/utils/dict/ta_dict.txt
+1
-1
tools/infer/utility.py
tools/infer/utility.py
+2
-1
未找到文件。
ppocr/data/imaug/label_ops.py
浏览文件 @
882e6e54
...
@@ -113,14 +113,14 @@ class BaseRecLabelEncode(object):
...
@@ -113,14 +113,14 @@ class BaseRecLabelEncode(object):
dict_character
=
list
(
self
.
character_str
)
dict_character
=
list
(
self
.
character_str
)
self
.
lower
=
True
self
.
lower
=
True
else
:
else
:
self
.
character_str
=
""
self
.
character_str
=
[]
with
open
(
character_dict_path
,
"rb"
)
as
fin
:
with
open
(
character_dict_path
,
"rb"
)
as
fin
:
lines
=
fin
.
readlines
()
lines
=
fin
.
readlines
()
for
line
in
lines
:
for
line
in
lines
:
line
=
line
.
decode
(
'utf-8'
).
strip
(
"
\n
"
).
strip
(
"
\r\n
"
)
line
=
line
.
decode
(
'utf-8'
).
strip
(
"
\n
"
).
strip
(
"
\r\n
"
)
self
.
character_str
+=
line
self
.
character_str
.
append
(
line
)
if
use_space_char
:
if
use_space_char
:
self
.
character_str
+=
" "
self
.
character_str
.
append
(
" "
)
dict_character
=
list
(
self
.
character_str
)
dict_character
=
list
(
self
.
character_str
)
dict_character
=
self
.
add_special_char
(
dict_character
)
dict_character
=
self
.
add_special_char
(
dict_character
)
self
.
dict
=
{}
self
.
dict
=
{}
...
...
ppocr/utils/dict/ka_dict.txt
浏览文件 @
882e6e54
...
@@ -21,7 +21,7 @@ l
...
@@ -21,7 +21,7 @@ l
8
8
.
.
j
j
p
p
ಗ
ಗ
ು
ು
ಣ
ಣ
...
...
ppocr/utils/dict/ta_dict.txt
浏览文件 @
882e6e54
...
@@ -22,7 +22,7 @@ l
...
@@ -22,7 +22,7 @@ l
8
8
.
.
j
j
p
p
ப
ப
ூ
ூ
த
த
...
...
tools/infer/utility.py
浏览文件 @
882e6e54
...
@@ -301,7 +301,8 @@ def create_predictor(args, mode, logger):
...
@@ -301,7 +301,8 @@ def create_predictor(args, mode, logger):
# enable memory optim
# enable memory optim
config
.
enable_memory_optim
()
config
.
enable_memory_optim
()
config
.
disable_glog_info
()
config
.
disable_glog_info
()
config
.
delete_pass
(
"reshape_transpose_matmul_v2_mkldnn_fuse_pass"
)
config
.
delete_pass
(
"reshape_transpose_matmul_mkldnn_fuse_pass"
)
config
.
delete_pass
(
"conv_transpose_eltwiseadd_bn_fuse_pass"
)
config
.
delete_pass
(
"conv_transpose_eltwiseadd_bn_fuse_pass"
)
if
mode
==
'table'
:
if
mode
==
'table'
:
config
.
delete_pass
(
"fc_fuse_pass"
)
# not supported for table
config
.
delete_pass
(
"fc_fuse_pass"
)
# not supported for table
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录