Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
645b3a39
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看板
提交
645b3a39
编写于
9月 17, 2017
作者:
Y
yangyaming
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bugs for model.py and demo_server.py.
上级
a4d02322
变更
26
隐藏空白更改
内联
并排
Showing
26 changed file
with
27 addition
and
26 deletion
+27
-26
deep_speech_2/cloud/pcloud_submit.sh
deep_speech_2/cloud/pcloud_submit.sh
+1
-1
deep_speech_2/cloud/pcloud_train.sh
deep_speech_2/cloud/pcloud_train.sh
+1
-1
deep_speech_2/cloud/pcloud_upload_data.sh
deep_speech_2/cloud/pcloud_upload_data.sh
+1
-1
deep_speech_2/deploy/demo_server.py
deep_speech_2/deploy/demo_server.py
+1
-1
deep_speech_2/examples/librispeech/run_data.sh
deep_speech_2/examples/librispeech/run_data.sh
+1
-1
deep_speech_2/examples/librispeech/run_infer.sh
deep_speech_2/examples/librispeech/run_infer.sh
+1
-1
deep_speech_2/examples/librispeech/run_infer_golden.sh
deep_speech_2/examples/librispeech/run_infer_golden.sh
+1
-1
deep_speech_2/examples/librispeech/run_test.sh
deep_speech_2/examples/librispeech/run_test.sh
+1
-1
deep_speech_2/examples/librispeech/run_test_golden.sh
deep_speech_2/examples/librispeech/run_test_golden.sh
+1
-1
deep_speech_2/examples/librispeech/run_train.sh
deep_speech_2/examples/librispeech/run_train.sh
+1
-1
deep_speech_2/examples/librispeech/run_tune.sh
deep_speech_2/examples/librispeech/run_tune.sh
+1
-1
deep_speech_2/examples/mandarin/run_demo_client.sh
deep_speech_2/examples/mandarin/run_demo_client.sh
+1
-1
deep_speech_2/examples/mandarin/run_demo_server.sh
deep_speech_2/examples/mandarin/run_demo_server.sh
+1
-1
deep_speech_2/examples/tiny/run_data.sh
deep_speech_2/examples/tiny/run_data.sh
+1
-1
deep_speech_2/examples/tiny/run_infer.sh
deep_speech_2/examples/tiny/run_infer.sh
+1
-1
deep_speech_2/examples/tiny/run_infer_golden.sh
deep_speech_2/examples/tiny/run_infer_golden.sh
+1
-1
deep_speech_2/examples/tiny/run_test.sh
deep_speech_2/examples/tiny/run_test.sh
+1
-1
deep_speech_2/examples/tiny/run_test_golden.sh
deep_speech_2/examples/tiny/run_test_golden.sh
+1
-1
deep_speech_2/examples/tiny/run_train.sh
deep_speech_2/examples/tiny/run_train.sh
+1
-1
deep_speech_2/examples/tiny/run_tune.sh
deep_speech_2/examples/tiny/run_tune.sh
+1
-1
deep_speech_2/model_utils/model.py
deep_speech_2/model_utils/model.py
+2
-1
deep_speech_2/models/aishell/download_model.sh
deep_speech_2/models/aishell/download_model.sh
+1
-1
deep_speech_2/models/librispeech/download_model.sh
deep_speech_2/models/librispeech/download_model.sh
+1
-1
deep_speech_2/models/lm/download_lm_ch.sh
deep_speech_2/models/lm/download_lm_ch.sh
+1
-1
deep_speech_2/models/lm/download_lm_en.sh
deep_speech_2/models/lm/download_lm_en.sh
+1
-1
deep_speech_2/setup.sh
deep_speech_2/setup.sh
+1
-1
未找到文件。
deep_speech_2/cloud/pcloud_submit.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
TRAIN_MANIFEST
=
"cloud/cloud_manifests/cloud.manifest.train"
DEV_MANIFEST
=
"cloud/cloud_manifests/cloud.manifest.dev"
...
...
deep_speech_2/cloud/pcloud_train.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
TRAIN_MANIFEST
=
$1
DEV_MANIFEST
=
$2
...
...
deep_speech_2/cloud/pcloud_upload_data.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
mkdir
cloud_manifests
...
...
deep_speech_2/deploy/demo_server.py
浏览文件 @
645b3a39
...
...
@@ -100,7 +100,7 @@ class AsrRequestHandler(SocketServer.BaseRequestHandler):
finish_time
=
time
.
time
()
print
(
"Response Time: %f, Transcript: %s"
%
(
finish_time
-
start_time
,
transcript
))
self
.
request
.
sendall
(
transcript
)
self
.
request
.
sendall
(
transcript
.
encode
(
'utf-8'
)
)
def
_write_to_file
(
self
,
data
):
# prepare save dir and filename
...
...
deep_speech_2/examples/librispeech/run_data.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/librispeech/run_infer.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/librispeech/run_infer_golden.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/librispeech/run_test.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/librispeech/run_test_golden.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/librispeech/run_train.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/librispeech/run_tune.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/mandarin/run_demo_client.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/mandarin/run_demo_server.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
# TODO: replace the model with a mandarin model
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/tiny/run_data.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/tiny/run_infer.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/tiny/run_infer_golden.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/tiny/run_test.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/tiny/run_test_golden.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/tiny/run_train.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/examples/tiny/run_tune.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
pushd
../..
>
/dev/null
...
...
deep_speech_2/model_utils/model.py
浏览文件 @
645b3a39
...
...
@@ -7,6 +7,7 @@ import sys
import
os
import
time
import
gzip
from
distutils.dir_util
import
mkpath
import
paddle.v2
as
paddle
from
model_utils.lm_scorer
import
LmScorer
from
model_utils.decoder
import
ctc_greedy_decoder
,
ctc_beam_search_decoder
...
...
@@ -79,7 +80,7 @@ class DeepSpeech2Model(object):
"""
# prepare model output directory
if
not
os
.
path
.
exists
(
output_model_dir
):
os
.
mkdir
(
output_model_dir
)
mkpath
(
output_model_dir
)
# prepare optimizer and trainer
optimizer
=
paddle
.
optimizer
.
Adam
(
...
...
deep_speech_2/models/aishell/download_model.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
source
../../utils/utility.sh
...
...
deep_speech_2/models/librispeech/download_model.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
source
../../utils/utility.sh
...
...
deep_speech_2/models/lm/download_lm_ch.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
source
../../utils/utility.sh
...
...
deep_speech_2/models/lm/download_lm_en.sh
浏览文件 @
645b3a39
#! /usr/bin/bash
#! /usr/bin/
env
bash
source
../../utils/utility.sh
...
...
deep_speech_2/setup.sh
浏览文件 @
645b3a39
#!
/bin/
bash
#!
/usr/bin/env
bash
# install python dependencies
if
[
-f
"requirements.txt"
]
;
then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录