Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleSeg
提交
ad9da388
P
PaddleSeg
项目概览
PaddlePaddle
/
PaddleSeg
通知
285
Star
8
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
53
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleSeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
53
Issue
53
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ad9da388
编写于
3月 26, 2020
作者:
S
sjtubinlong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update build script and fix bugs
上级
584ad688
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
13 deletion
+14
-13
contrib/RealTimeHumanSeg/CMakeLists.txt
contrib/RealTimeHumanSeg/CMakeLists.txt
+4
-8
contrib/RealTimeHumanSeg/data/test.avi
contrib/RealTimeHumanSeg/data/test.avi
+0
-0
contrib/RealTimeHumanSeg/docs/linux_build.md
contrib/RealTimeHumanSeg/docs/linux_build.md
+2
-0
contrib/RealTimeHumanSeg/docs/windows_build.md
contrib/RealTimeHumanSeg/docs/windows_build.md
+2
-0
contrib/RealTimeHumanSeg/linux_build.sh
contrib/RealTimeHumanSeg/linux_build.sh
+6
-5
未找到文件。
contrib/RealTimeHumanSeg/CMakeLists.txt
浏览文件 @
ad9da388
...
@@ -70,10 +70,10 @@ if (WIN32)
...
@@ -70,10 +70,10 @@ if (WIN32)
include_directories
(
"
${
OPENCV_DIR
}
/opencv/build/include"
)
include_directories
(
"
${
OPENCV_DIR
}
/opencv/build/include"
)
link_directories
(
"
${
OPENCV_DIR
}
/build/x64/vc14/lib"
)
link_directories
(
"
${
OPENCV_DIR
}
/build/x64/vc14/lib"
)
else
()
else
()
find_package
(
OpenCV REQUIRED PATHS
${
OPENCV_DIR
}
/share/OpenCV NO_DEFAULT_PATH
)
include_directories
(
"
${
PADDLE_DIR
}
/paddle/include"
)
include_directories
(
"
${
PADDLE_DIR
}
/paddle/include"
)
link_directories
(
"
${
PADDLE_DIR
}
/paddle/lib"
)
link_directories
(
"
${
PADDLE_DIR
}
/paddle/lib"
)
include_directories
(
"
${
OPENCV_DIR
}
/include"
)
include_directories
(
${
OpenCV_INCLUDE_DIRS
}
)
link_directories
(
"
${
OPENCV_DIR
}
/lib"
)
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
)
...
@@ -202,12 +202,8 @@ if(WITH_GPU)
...
@@ -202,12 +202,8 @@ if(WITH_GPU)
endif
()
endif
()
if
(
NOT WIN32
)
if
(
NOT WIN32
)
set
(
EXTERNAL_LIB
"-ldl -lrt -lgomp -lz -lm -lpthread"
set
(
EXTERNAL_LIB
"-ldl -lrt -lgomp -lz -lm -lpthread"
)
"-lopencv_world -lopencv_img_hash"
set
(
DEPS
${
DEPS
}
${
EXTERNAL_LIB
}
${
OpenCV_LIBS
}
)
"-lIlmImf -llibpng -lippiw -lippicv"
"-llibtiff -llibwebp -littnotify -llibjasper"
"-llibjpeg -lzlib"
)
set
(
DEPS
${
DEPS
}
${
EXTERNAL_LIB
}
)
endif
()
endif
()
add_executable
(
main main.cc humanseg.cc humanseg_postprocess.cc
)
add_executable
(
main main.cc humanseg.cc humanseg_postprocess.cc
)
...
...
contrib/RealTimeHumanSeg/data/test.avi
已删除
100644 → 0
浏览文件 @
584ad688
文件已删除
contrib/RealTimeHumanSeg/docs/linux_build.md
浏览文件 @
ad9da388
...
@@ -81,4 +81,6 @@ sh linux_build.sh
...
@@ -81,4 +81,6 @@ sh linux_build.sh
./build/main ./models /PATH/TO/TEST_VIDEO
./build/main ./models /PATH/TO/TEST_VIDEO
```
```
点击下载
[
测试视频
](
https://paddleseg.bj.bcebos.com/deploy/data/test.avi
)
预测的结果保存在视频文件
`result.avi`
中。
预测的结果保存在视频文件
`result.avi`
中。
contrib/RealTimeHumanSeg/docs/windows_build.md
浏览文件 @
ad9da388
...
@@ -78,4 +78,6 @@ main.exe ./models/ ./data/test.avi
...
@@ -78,4 +78,6 @@ main.exe ./models/ ./data/test.avi
```
```
第一个参数即人像分割预测模型的路径,第二个参数即要预测的视频。
第一个参数即人像分割预测模型的路径,第二个参数即要预测的视频。
点击下载
[
测试视频
](
https://paddleseg.bj.bcebos.com/deploy/data/test.avi
)
运行后,预测结果保存在文件
`result.avi`
中。
运行后,预测结果保存在文件
`result.avi`
中。
contrib/RealTimeHumanSeg/linux_build.sh
浏览文件 @
ad9da388
OPENCV_URL
=
https://paddleseg.bj.bcebos.com/deploy/deps/opencv34
1
.tar.bz2
OPENCV_URL
=
https://paddleseg.bj.bcebos.com/deploy/deps/opencv34
6
.tar.bz2
if
[
!
-d
"./deps/opencv34
1
"
]
;
then
if
[
!
-d
"./deps/opencv34
6
"
]
;
then
mkdir
-p
deps
mkdir
-p
deps
cd
deps
cd
deps
wget
-c
${
OPENCV_URL
}
wget
-c
${
OPENCV_URL
}
tar
xvfj opencv34
1
.tar.bz2
tar
xvfj opencv34
6
.tar.bz2
rm
-rf
opencv34
1
.tar.bz2
rm
-rf
opencv34
6
.tar.bz2
cd
..
cd
..
fi
fi
...
@@ -12,7 +12,8 @@ WITH_GPU=OFF
...
@@ -12,7 +12,8 @@ WITH_GPU=OFF
PADDLE_DIR
=
/root/projects/deps/fluid_inference/
PADDLE_DIR
=
/root/projects/deps/fluid_inference/
CUDA_LIB
=
/usr/local/cuda-10.0/lib64/
CUDA_LIB
=
/usr/local/cuda-10.0/lib64/
CUDNN_LIB
=
/usr/local/cuda-10.0/lib64/
CUDNN_LIB
=
/usr/local/cuda-10.0/lib64/
OPENCV_DIR
=
$(
pwd
)
/deps/opencv341/
OPENCV_DIR
=
$(
pwd
)
/deps/opencv346/
echo
${
OPENCV_DIR
}
rm
-rf
build
rm
-rf
build
mkdir
-p
build
mkdir
-p
build
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录