Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
58e63124
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
58e63124
编写于
1月 21, 2019
作者:
T
tianshuo78520a
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update finction
上级
e297c39b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
23 deletion
+23
-23
paddle/scripts/fast_install.sh
paddle/scripts/fast_install.sh
+23
-23
未找到文件。
paddle/scripts/fast_install.sh
浏览文件 @
58e63124
...
...
@@ -20,7 +20,7 @@ function use_cpu(){
done
}
function
check
_p
ython2
(){
function
check
MacP
ython2
(){
while
true
do
read
-p
"未发现除MacOS自带的python外的可用python,
...
...
@@ -57,7 +57,7 @@ function check_python2(){
done
}
function
check
_p
ython3
(){
function
check
MacP
ython3
(){
while
true
do
read
-p
"未发现可用的python3,
...
...
@@ -94,7 +94,7 @@ function check_python3(){
done
}
function
check
_cudnn
(){
function
check
LinuxCUDNN
(){
while
true
do
version_file
=
'/usr/local/cuda/include/cudnn.h'
...
...
@@ -151,7 +151,7 @@ function check_cudnn(){
done
}
function
check
_cuda
(){
function
check
LinuxCUDA
(){
while
true
do
CUDA
=
`
echo
${
CUDA_VERSION
}
|awk
-F
"[ .]"
'{print $1}'
`
...
...
@@ -222,7 +222,7 @@ function check_cuda(){
done
}
function
math_l
ibrary
(){
function
checkLinuxMathL
ibrary
(){
while
true
do
if
[
"
$AVX
"
==
""
]
;
then
...
...
@@ -255,7 +255,7 @@ function math_library(){
done
}
function
paddle_develop
(){
function
checkLinuxPaddleVersion
(){
while
true
do
read
-p
"请选择Paddle版本:
...
...
@@ -278,7 +278,7 @@ function paddle_develop(){
done
}
function
pip_check
(){
function
checkLinuxPip
(){
while
true
do
echo
"请输入您要使用的pip目录(您可以使用which pip来查看):"
...
...
@@ -306,7 +306,7 @@ function pip_check(){
done
}
function
avx_check
(){
function
checkLinuxAVX
(){
while
true
do
if
[[
"
$AVX
"
!=
""
]]
;
then
...
...
@@ -324,7 +324,7 @@ function avx_check(){
done
}
function
pip_i
nstall
(){
function
PipLinuxI
nstall
(){
wheel_cpu_release
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-
${
GPU
}
-
${
AVX
}
-
${
math
}
/paddlepaddle-
${
release_version
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_gpu_release
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-gpu-cuda
${
CUDA
}
-cudnn
${
CUDNN
}
-
${
AVX
}
-
${
math
}
/paddlepaddle_gpu-
${
release_version
}
.post
${
CUDA
}${
CUDNN
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
wheel_gpu_release_navx
=
"http://paddle-wheel.bj.bcebos.com/
${
release_version
}
-gpu-cuda
${
CUDA
}
-cudnn
${
CUDNN
}
-
${
AVX
}
-
${
math
}
/paddlepaddle_gpu-
${
release_version
}
-cp
${
python_version
}
-cp
${
python_version
}
m
${
uncode
}
-linux_x86_64.whl"
...
...
@@ -362,7 +362,7 @@ function pip_install(){
}
function
check
_gpu
(){
function
check
LinuxGPU
(){
AVX
=
`
cat
/proc/cpuinfo |grep avx|tail
-1
|grep avx
`
which_gpu
=
`
lspci |grep
-i
nvidia
`
if
[
"
$which_gpu
"
==
""
]
;
then
...
...
@@ -373,8 +373,8 @@ function check_gpu(){
echo
"您使用的是包含我们支持的GPU机器"
fi
if
[
"
$GPU
"
==
'gpu'
]
;
then
check
_cuda
check
_cudnn
check
LinuxCUDA
check
LinuxCUDNN
fi
}
...
...
@@ -575,14 +575,14 @@ gpu_list=("GeForce 410M"
"Tesla P4"
"Tesla P40"
"Tesla V100"
)
check_gpu
math_library
paddle_develop
pip_check
avx_check
pip_install
checkLinuxGPU
checkLinuxMathLibrary
checkLinuxPaddleVersion
checkLinuxPip
checkLinuxAVX
PipLinuxInstall
}
function
checkMacPaddleVersion
(){
while
true
do
...
...
@@ -622,7 +622,7 @@ function checkMacPythonVersion(){
python_version
=
""
fi
if
[
"
$python_root
"
==
""
]||[
"
$python_root
"
==
"/usr/bin/python"
-a
"
$python_version
"
==
"Python 2.7.10"
]||[
"
$python_root
"
==
"/usr/bin/python2.7"
-a
"
$python_version
"
==
"Python 2.7.10"
]
;
then
check
_p
ython2
check
MacP
ython2
fi
while
true
do
...
...
@@ -632,7 +632,7 @@ function checkMacPythonVersion(){
break
elif
[
"
$use_python
"
==
"n"
]
;
then
python_root
=
""
check
_p
ython2
check
MacP
ython2
break
else
echo
"输入错误,请重新输入"
...
...
@@ -648,7 +648,7 @@ function checkMacPythonVersion(){
python_version
=
""
fi
if
[
"
$python_root
"
==
""
]||[
"
$python_root
"
==
"/usr/bin/python"
-a
"
$python_version
"
==
"Python 2.7.10"
]
;
then
check
_p
ython3
check
MacP
ython3
fi
while
true
do
...
...
@@ -657,7 +657,7 @@ function checkMacPythonVersion(){
if
[
"
$use_python
"
==
"y"
]||[
"
$use_python
"
==
""
]
;
then
break
elif
[
"
$use_python
"
==
"n"
]
;
then
check
_p
ython3
check
MacP
ython3
break
else
echo
"输入错误,请重新输入"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录