Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
1f23c4bd
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1f23c4bd
编写于
4月 11, 2022
作者:
Y
Yang Zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unnecessary log
上级
90d6b6f1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
11 deletion
+13
-11
speechx/examples/decoder/offline_decoder_sliding_chunk_main.cc
...hx/examples/decoder/offline_decoder_sliding_chunk_main.cc
+6
-4
speechx/examples/decoder/offline_wfst_decoder_main.cc
speechx/examples/decoder/offline_wfst_decoder_main.cc
+7
-5
speechx/speechx/nnet/decodable.cc
speechx/speechx/nnet/decodable.cc
+0
-1
speechx/speechx/nnet/paddle_nnet.cc
speechx/speechx/nnet/paddle_nnet.cc
+0
-1
未找到文件。
speechx/examples/decoder/offline_decoder_sliding_chunk_main.cc
浏览文件 @
1f23c4bd
...
@@ -136,14 +136,16 @@ int main(int argc, char* argv[]) {
...
@@ -136,14 +136,16 @@ int main(int argc, char* argv[]) {
}
}
std
::
string
result
;
std
::
string
result
;
result
=
decoder
.
GetFinalBestPath
();
result
=
decoder
.
GetFinalBestPath
();
KALDI_LOG
<<
" the result of "
<<
utt
<<
" is "
<<
result
;
decodable
->
Reset
();
decoder
.
Reset
();
if
(
result
.
empty
())
{
if
(
result
.
empty
())
{
// the TokenWriter can not write empty string.
// the TokenWriter can not write empty string.
result
=
" "
;
++
num_err
;
KALDI_LOG
<<
" the result of "
<<
utt
<<
" is empty"
;
continue
;
}
}
KALDI_LOG
<<
" the result of "
<<
utt
<<
" is "
<<
result
;
result_writer
.
Write
(
utt
,
result
);
result_writer
.
Write
(
utt
,
result
);
decodable
->
Reset
();
decoder
.
Reset
();
++
num_done
;
++
num_done
;
}
}
...
...
speechx/examples/decoder/offline_wfst_decoder_main.cc
浏览文件 @
1f23c4bd
...
@@ -139,14 +139,16 @@ int main(int argc, char* argv[]) {
...
@@ -139,14 +139,16 @@ int main(int argc, char* argv[]) {
}
}
std
::
string
result
;
std
::
string
result
;
result
=
decoder
.
GetFinalBestPath
();
result
=
decoder
.
GetFinalBestPath
();
KALDI_LOG
<<
" the result of "
<<
utt
<<
" is "
<<
result
;
decodable
->
Reset
();
if
(
result
.
empty
())
{
decoder
.
Reset
();
if
(
result
.
empty
())
{
// the TokenWriter can not write empty string.
// the TokenWriter can not write empty string.
result
=
" "
;
++
num_err
;
KALDI_LOG
<<
" the result of "
<<
utt
<<
" is empty"
;
continue
;
}
}
KALDI_LOG
<<
" the result of "
<<
utt
<<
" is "
<<
result
;
result_writer
.
Write
(
utt
,
result
);
result_writer
.
Write
(
utt
,
result
);
decodable
->
Reset
();
decoder
.
Reset
();
++
num_done
;
++
num_done
;
}
}
...
...
speechx/speechx/nnet/decodable.cc
浏览文件 @
1f23c4bd
...
@@ -78,7 +78,6 @@ bool Decodable::AdvanceChunk() {
...
@@ -78,7 +78,6 @@ bool Decodable::AdvanceChunk() {
frame_offset_
=
frames_ready_
;
frame_offset_
=
frames_ready_
;
frames_ready_
+=
nnet_cache_
.
NumRows
();
frames_ready_
+=
nnet_cache_
.
NumRows
();
LOG
(
INFO
)
<<
"nnet size: "
<<
nnet_cache_
.
NumRows
();
return
true
;
return
true
;
}
}
...
...
speechx/speechx/nnet/paddle_nnet.cc
浏览文件 @
1f23c4bd
...
@@ -177,7 +177,6 @@ void PaddleNnet::FeedForward(const Vector<BaseFloat>& features,
...
@@ -177,7 +177,6 @@ void PaddleNnet::FeedForward(const Vector<BaseFloat>& features,
LOG
(
INFO
)
<<
"predictor run occurs error"
;
LOG
(
INFO
)
<<
"predictor run occurs error"
;
}
}
LOG
(
INFO
)
<<
"get the model success"
;
std
::
unique_ptr
<
paddle_infer
::
Tensor
>
h_out
=
std
::
unique_ptr
<
paddle_infer
::
Tensor
>
h_out
=
predictor
->
GetOutputHandle
(
output_names
[
2
]);
predictor
->
GetOutputHandle
(
output_names
[
2
]);
assert
(
h_cache
->
get_shape
()
==
h_out
->
shape
());
assert
(
h_cache
->
get_shape
()
==
h_out
->
shape
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录