Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
f34d4ad4
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看板
未验证
提交
f34d4ad4
编写于
3月 17, 2023
作者:
Mars懵
提交者:
GitHub
3月 17, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[runtime] fix vad and cls cmake (#3050)
* fix vad and cls cmake
上级
b9bdeca6
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
23 addition
and
15 deletion
+23
-15
runtime/CMakeLists.txt
runtime/CMakeLists.txt
+1
-3
runtime/build.sh
runtime/build.sh
+15
-6
runtime/cmake/glog.cmake
runtime/cmake/glog.cmake
+2
-2
runtime/engine/cls/nnet/CMakeLists.txt
runtime/engine/cls/nnet/CMakeLists.txt
+2
-2
runtime/engine/cls/nnet/panns_nnet.cc
runtime/engine/cls/nnet/panns_nnet.cc
+1
-1
runtime/engine/cls/nnet/panns_nnet_main.cc
runtime/engine/cls/nnet/panns_nnet_main.cc
+1
-0
runtime/engine/vad/nnet/CMakeLists.txt
runtime/engine/vad/nnet/CMakeLists.txt
+1
-1
未找到文件。
runtime/CMakeLists.txt
浏览文件 @
f34d4ad4
...
...
@@ -72,9 +72,7 @@ if(WITH_TESTING)
endif
()
# fastdeploy
if
(
NOT WITH_ASR
)
include
(
fastdeploy
)
endif
()
include
(
fastdeploy
)
if
(
WITH_ASR
)
# openfst
...
...
runtime/build.sh
浏览文件 @
f34d4ad4
...
...
@@ -6,15 +6,24 @@ BUILD_DIR=${BUILD_ROOT}/x86_64
mkdir
-p
${
BUILD_DIR
}
BUILD_TYPE
=
Release
#BUILD_TYPE=Debug
BUILD_SO
=
OFF
BUILD_ASR
=
OFF
BUILD_CLS
=
ON
BUILD_VAD
=
ON
FASTDEPLOY_INSTALL_DIR
=
""
# the build script had verified in the paddlepaddle docker image.
# please follow the instruction below to install PaddlePaddle image.
# https://www.paddlepaddle.org.cn/documentation/docs/zh/install/docker/linux-docker.html
#cmake -B build -DBUILD_SHARED_LIBS=OFF -DWITH_ASR=OFF -DWITH_CLS=OFF -DWITH_VAD=ON -DFASTDEPLOY_INSTALL_DIR=/workspace/zhanghui/paddle/FastDeploy/build/Android/arm64-v8a-api-21/install
cmake
-B
${
BUILD_DIR
}
\
-DCMAKE_BUILD_TYPE
=
Release
\
-DBUILD_SHARED_LIBS
=
OFF
\
-DWITH_ASR
=
OFF
\
-DWITH_CLS
=
OFF
\
-DWITH_VAD
=
ON
\
-DFASTDEPLOY_INSTALL_DIR
=
/workspace/zhanghui/paddle/FastDeploy/build/Linux/x86_64/install
-DCMAKE_BUILD_TYPE
=
${
BUILD_TYPE
}
\
-DBUILD_SHARED_LIBS
=
${
BUILD_SO
}
\
-DWITH_ASR
=
${
BUILD_ASR
}
\
-DWITH_CLS
=
${
BUILD_CLS
}
\
-DWITH_VAD
=
${
BUILD_VAD
}
\
-DFASTDEPLOY_INSTALL_DIR
=
${
FASTDEPLOY_INSTALL_DIR
}
cmake
--build
${
BUILD_DIR
}
-j
runtime/cmake/glog.cmake
浏览文件 @
f34d4ad4
...
...
@@ -28,8 +28,8 @@ endif()
if
(
ANDROID
)
add_library
(
extern_glog INTERFACE
)
add_dependencies
(
extern_
glog gflags
)
add_dependencies
(
glog gflags
)
else
()
# UNIX
add_library
(
extern_glog ALIAS glog
)
add_dependencies
(
extern_
glog gflags
)
add_dependencies
(
glog gflags
)
endif
()
\ No newline at end of file
runtime/engine/cls/nnet/CMakeLists.txt
浏览文件 @
f34d4ad4
...
...
@@ -4,8 +4,8 @@ set(srcs
)
add_library
(
cls
${
srcs
}
)
target_link_libraries
(
cls
INTERFACE -static-libstdc++;-Wl,-Bsymbolic
${
FASTDEPLOY_LIBS
}
kaldi-matrix kaldi-base frontend utils
)
target_link_libraries
(
cls
PRIVATE
${
FASTDEPLOY_LIBS
}
kaldi-matrix kaldi-base frontend utils
)
set
(
bin_name panns_nnet_main
)
add_executable
(
${
bin_name
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
bin_name
}
.cc
)
target_link_libraries
(
${
bin_name
}
-static-libstdc++;-Wl,-Bsymbolic gflags glog
)
target_link_libraries
(
${
bin_name
}
gflags glog cls
)
runtime/engine/cls/nnet/panns_nnet.cc
浏览文件 @
f34d4ad4
...
...
@@ -67,7 +67,7 @@ int ClsNnet::Init(const ClsNnetConf& conf) {
runtime_option
.
UsePaddleInferBackend
();
#endif
runtime_option
.
SetCpuThreadNum
(
conf
.
num_cpu_thread_
);
runtime_option
.
DeletePaddleBackendPass
(
"simplify_with_basic_ops_pass"
);
//
runtime_option.DeletePaddleBackendPass("simplify_with_basic_ops_pass");
runtime_
=
std
::
unique_ptr
<
fastdeploy
::
Runtime
>
(
new
fastdeploy
::
Runtime
());
if
(
!
runtime_
->
Init
(
runtime_option
))
{
std
::
cerr
<<
"--- Init FastDeploy Runitme Failed! "
...
...
runtime/engine/cls/nnet/panns_nnet_main.cc
浏览文件 @
f34d4ad4
...
...
@@ -16,6 +16,7 @@
#include <string>
#include "base/flags.h"
#include "base/log.h"
#include "cls/nnet/panns_interface.h"
DEFINE_string
(
conf_path
,
""
,
"config path"
);
...
...
runtime/engine/vad/nnet/CMakeLists.txt
浏览文件 @
f34d4ad4
...
...
@@ -13,4 +13,4 @@ target_link_libraries(${bin_name} pps_vad)
file
(
RELATIVE_PATH DEST_DIR
${
ENGINE_ROOT
}
${
CMAKE_CURRENT_SOURCE_DIR
}
)
install
(
TARGETS pps_vad DESTINATION lib
)
install
(
TARGETS extern_glog DESTINATION lib
)
\ No newline at end of file
install
(
TARGETS glog DESTINATION lib
)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录