Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
20afb50a
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
大约 1 年 前同步成功
通知
115
Star
4999
Fork
1114
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
6
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleClas
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
6
合并请求
6
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
20afb50a
编写于
6月 29, 2020
作者:
S
shippingwang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
上级
df80c2f0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
1 addition
and
12 deletion
+1
-12
tools/program.py
tools/program.py
+0
-10
tools/run_dali.sh
tools/run_dali.sh
+1
-2
未找到文件。
tools/program.py
浏览文件 @
20afb50a
...
@@ -437,19 +437,9 @@ def run(dataloader,
...
@@ -437,19 +437,9 @@ def run(dataloader,
batch_time
=
AverageMeter
(
'elapse'
,
'.3f'
)
batch_time
=
AverageMeter
(
'elapse'
,
'.3f'
)
tic
=
time
.
time
()
tic
=
time
.
time
()
dataloader
=
dataloader
if
config
.
get
(
'use_dali'
)
else
dataloader
()()
dataloader
=
dataloader
if
config
.
get
(
'use_dali'
)
else
dataloader
()()
#sta = 0
for
idx
,
batch
in
enumerate
(
dataloader
):
for
idx
,
batch
in
enumerate
(
dataloader
):
#start_time = time.time()
metrics
=
exe
.
run
(
program
=
program
,
feed
=
batch
,
fetch_list
=
fetch_list
)
metrics
=
exe
.
run
(
program
=
program
,
feed
=
batch
,
fetch_list
=
fetch_list
)
#end_time = time.time()
#statistics = end_time - start_time
# if idx >= 10:
# sta = sta+statistics
# if idx == 110 and int(os.getenv("PADDLE_TRAINER_ID", 0)) == 0:
# print("10-100batch speed 000", sta/100, 's/batch', 'bs', config.TRAIN.batch_size)
# if idx == 110 and int(os.getenv("PADDLE_TRAINER_ID", 0)) == 1:
# print("10-100batch speed 111", sta/100, 's/batch', 'bs', config.TRAIN.batch_size)
batch_time
.
update
(
time
.
time
()
-
tic
)
batch_time
.
update
(
time
.
time
()
-
tic
)
tic
=
time
.
time
()
tic
=
time
.
time
()
for
i
,
m
in
enumerate
(
metrics
):
for
i
,
m
in
enumerate
(
metrics
):
...
...
tools/run_dali.sh
浏览文件 @
20afb50a
#!/usr/bin/env bash
#!/usr/bin/env bash
export
PYTHONPATH
=
$PWD
:
$PYTHONPA
export
PYTHONPATH
=
$PWD
:
$PYTHONPA
TH
export
FLAGS_fraction_of_gpu_memory_to_use
=
0.8
export
FLAGS_fraction_of_gpu_memory_to_use
=
0.8
...
@@ -8,6 +8,5 @@ python3 -m paddle.distributed.launch \
...
@@ -8,6 +8,5 @@ python3 -m paddle.distributed.launch \
--selected_gpus
=
"0,1"
\
--selected_gpus
=
"0,1"
\
tools/train.py
\
tools/train.py
\
-c
./configs/high_performance/dali.yaml
\
-c
./configs/high_performance/dali.yaml
\
-o
TRAIN.batch_size
=
4
\
-o
use_mix
=
True
\
-o
use_mix
=
True
\
-o
use_dali
=
True
-o
use_dali
=
True
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录