Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
1dfba509
M
models
项目概览
PaddlePaddle
/
models
接近 2 年 前同步成功
通知
230
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看板
未验证
提交
1dfba509
编写于
9月 10, 2019
作者:
Z
Zeng Jinle
提交者:
GitHub
9月 10, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
set enable_inplace to True in models, test=develop (#3297)
上级
9958875f
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
0 addition
and
11 deletion
+0
-11
PaddleCV/PaddleDetection/tools/train.py
PaddleCV/PaddleDetection/tools/train.py
+0
-1
PaddleCV/PaddleGAN/cycle_gan/train.py
PaddleCV/PaddleGAN/cycle_gan/train.py
+0
-2
PaddleCV/PaddleGAN/trainer/AttGAN.py
PaddleCV/PaddleGAN/trainer/AttGAN.py
+0
-1
PaddleCV/PaddleGAN/trainer/Pix2pix.py
PaddleCV/PaddleGAN/trainer/Pix2pix.py
+0
-1
PaddleCV/PaddleGAN/trainer/STGAN.py
PaddleCV/PaddleGAN/trainer/STGAN.py
+0
-1
PaddleCV/PaddleGAN/trainer/StarGAN.py
PaddleCV/PaddleGAN/trainer/StarGAN.py
+0
-1
PaddleCV/PaddleVideo/train.py
PaddleCV/PaddleVideo/train.py
+0
-1
PaddleCV/deeplabv3+/train.py
PaddleCV/deeplabv3+/train.py
+0
-1
PaddleCV/image_classification/legacy/dist_train/dist_train.py
...leCV/image_classification/legacy/dist_train/dist_train.py
+0
-1
PaddleCV/ssd/train.py
PaddleCV/ssd/train.py
+0
-1
未找到文件。
PaddleCV/PaddleDetection/tools/train.py
浏览文件 @
1dfba509
...
@@ -134,7 +134,6 @@ def main():
...
@@ -134,7 +134,6 @@ def main():
# compile program for multi-devices
# compile program for multi-devices
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
.
enable_inplace
=
False
sync_bn
=
getattr
(
model
.
backbone
,
'norm_type'
,
None
)
==
'sync_bn'
sync_bn
=
getattr
(
model
.
backbone
,
'norm_type'
,
None
)
==
'sync_bn'
# only enable sync_bn in multi GPU devices
# only enable sync_bn in multi GPU devices
build_strategy
.
sync_batch_norm
=
sync_bn
and
devices_num
>
1
and
cfg
.
use_gpu
build_strategy
.
sync_batch_norm
=
sync_bn
and
devices_num
>
1
and
cfg
.
use_gpu
...
...
PaddleCV/PaddleGAN/cycle_gan/train.py
浏览文件 @
1dfba509
...
@@ -189,8 +189,6 @@ def train(args):
...
@@ -189,8 +189,6 @@ def train(args):
losses
=
[[],
[]]
losses
=
[[],
[]]
t_time
=
0
t_time
=
0
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
.
enable_inplace
=
False
build_strategy
.
memory_optimize
=
False
exec_strategy
=
fluid
.
ExecutionStrategy
()
exec_strategy
=
fluid
.
ExecutionStrategy
()
exec_strategy
.
num_threads
=
1
exec_strategy
.
num_threads
=
1
...
...
PaddleCV/PaddleGAN/trainer/AttGAN.py
浏览文件 @
1dfba509
...
@@ -316,7 +316,6 @@ class AttGAN(object):
...
@@ -316,7 +316,6 @@ class AttGAN(object):
### memory optim
### memory optim
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
.
enable_inplace
=
False
gen_trainer_program
=
fluid
.
CompiledProgram
(
gen_trainer_program
=
fluid
.
CompiledProgram
(
gen_trainer
.
program
).
with_data_parallel
(
gen_trainer
.
program
).
with_data_parallel
(
...
...
PaddleCV/PaddleGAN/trainer/Pix2pix.py
浏览文件 @
1dfba509
...
@@ -245,7 +245,6 @@ class Pix2pix(object):
...
@@ -245,7 +245,6 @@ class Pix2pix(object):
### memory optim
### memory optim
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
.
enable_inplace
=
False
gen_trainer_program
=
fluid
.
CompiledProgram
(
gen_trainer_program
=
fluid
.
CompiledProgram
(
gen_trainer
.
program
).
with_data_parallel
(
gen_trainer
.
program
).
with_data_parallel
(
...
...
PaddleCV/PaddleGAN/trainer/STGAN.py
浏览文件 @
1dfba509
...
@@ -328,7 +328,6 @@ class STGAN(object):
...
@@ -328,7 +328,6 @@ class STGAN(object):
### memory optim
### memory optim
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
.
enable_inplace
=
False
gen_trainer_program
=
fluid
.
CompiledProgram
(
gen_trainer_program
=
fluid
.
CompiledProgram
(
gen_trainer
.
program
).
with_data_parallel
(
gen_trainer
.
program
).
with_data_parallel
(
...
...
PaddleCV/PaddleGAN/trainer/StarGAN.py
浏览文件 @
1dfba509
...
@@ -294,7 +294,6 @@ class StarGAN(object):
...
@@ -294,7 +294,6 @@ class StarGAN(object):
### memory optim
### memory optim
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
.
enable_inplace
=
False
gen_trainer_program
=
fluid
.
CompiledProgram
(
gen_trainer_program
=
fluid
.
CompiledProgram
(
gen_trainer
.
program
).
with_data_parallel
(
gen_trainer
.
program
).
with_data_parallel
(
...
...
PaddleCV/PaddleVideo/train.py
浏览文件 @
1dfba509
...
@@ -171,7 +171,6 @@ def train(args):
...
@@ -171,7 +171,6 @@ def train(args):
build_strategy
.
enable_inplace
=
True
build_strategy
.
enable_inplace
=
True
if
args
.
model_name
in
[
'CTCN'
]:
if
args
.
model_name
in
[
'CTCN'
]:
build_strategy
.
enable_sequential_execution
=
True
build_strategy
.
enable_sequential_execution
=
True
#build_strategy.memory_optimize = True
compiled_train_prog
=
fluid
.
compiler
.
CompiledProgram
(
compiled_train_prog
=
fluid
.
compiler
.
CompiledProgram
(
train_prog
).
with_data_parallel
(
train_prog
).
with_data_parallel
(
...
...
PaddleCV/deeplabv3+/train.py
浏览文件 @
1dfba509
...
@@ -200,7 +200,6 @@ build_strategy = fluid.BuildStrategy()
...
@@ -200,7 +200,6 @@ build_strategy = fluid.BuildStrategy()
if
args
.
memory_optimize
:
if
args
.
memory_optimize
:
build_strategy
.
fuse_relu_depthwise_conv
=
True
build_strategy
.
fuse_relu_depthwise_conv
=
True
build_strategy
.
enable_inplace
=
True
build_strategy
.
enable_inplace
=
True
build_strategy
.
memory_optimize
=
True
place
=
fluid
.
CPUPlace
()
place
=
fluid
.
CPUPlace
()
if
args
.
use_gpu
:
if
args
.
use_gpu
:
...
...
PaddleCV/image_classification/legacy/dist_train/dist_train.py
浏览文件 @
1dfba509
...
@@ -284,7 +284,6 @@ def train_parallel(args):
...
@@ -284,7 +284,6 @@ def train_parallel(args):
strategy
.
num_iteration_per_drop_scope
=
30
strategy
.
num_iteration_per_drop_scope
=
30
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
.
enable_inplace
=
False
build_strategy
.
memory_optimize
=
False
build_strategy
.
memory_optimize
=
False
build_strategy
.
enable_sequential_execution
=
bool
(
build_strategy
.
enable_sequential_execution
=
bool
(
args
.
enable_sequential_execution
)
args
.
enable_sequential_execution
)
...
...
PaddleCV/ssd/train.py
浏览文件 @
1dfba509
...
@@ -210,7 +210,6 @@ def train(args,
...
@@ -210,7 +210,6 @@ def train(args,
loss
.
persistable
=
True
loss
.
persistable
=
True
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
=
fluid
.
BuildStrategy
()
build_strategy
.
enable_inplace
=
True
build_strategy
.
enable_inplace
=
True
build_strategy
.
memory_optimize
=
True
train_exe
=
fluid
.
ParallelExecutor
(
main_program
=
train_prog
,
train_exe
=
fluid
.
ParallelExecutor
(
main_program
=
train_prog
,
use_cuda
=
use_gpu
,
loss_name
=
loss
.
name
,
build_strategy
=
build_strategy
)
use_cuda
=
use_gpu
,
loss_name
=
loss
.
name
,
build_strategy
=
build_strategy
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录