Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
e67f0c39
M
models
项目概览
PaddlePaddle
/
models
1 年多 前同步成功
通知
222
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看板
提交
e67f0c39
编写于
4月 05, 2019
作者:
D
dengkaipeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refine script and config.
上级
1b5ce43e
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
16 addition
and
16 deletion
+16
-16
PaddleCV/video/config.py
PaddleCV/video/config.py
+7
-4
PaddleCV/video/infer.py
PaddleCV/video/infer.py
+1
-2
PaddleCV/video/scripts/infer/infer_attention_cluster.sh
PaddleCV/video/scripts/infer/infer_attention_cluster.sh
+1
-1
PaddleCV/video/scripts/infer/infer_attention_lstm.sh
PaddleCV/video/scripts/infer/infer_attention_lstm.sh
+1
-1
PaddleCV/video/scripts/infer/infer_nextvlad.sh
PaddleCV/video/scripts/infer/infer_nextvlad.sh
+1
-1
PaddleCV/video/scripts/infer/infer_stnet.sh
PaddleCV/video/scripts/infer/infer_stnet.sh
+1
-1
PaddleCV/video/scripts/infer/infer_tsm.sh
PaddleCV/video/scripts/infer/infer_tsm.sh
+1
-1
PaddleCV/video/scripts/infer/infer_tsn.sh
PaddleCV/video/scripts/infer/infer_tsn.sh
+1
-1
PaddleCV/video/test.py
PaddleCV/video/test.py
+1
-2
PaddleCV/video/train.py
PaddleCV/video/train.py
+1
-2
未找到文件。
PaddleCV/video/config.py
浏览文件 @
e67f0c39
...
...
@@ -61,7 +61,10 @@ def merge_configs(cfg, sec, args_dict):
return
cfg
def
print_configs
(
cfg
):
import
pprint
logger
.
info
(
'Training with config:'
)
logger
.
info
(
pprint
.
pformat
(
cfg
))
def
print_configs
(
cfg
,
mode
):
logger
.
info
(
"---------------- {:>5} Arguments ----------------"
.
format
(
mode
))
for
sec
,
sec_items
in
cfg
.
items
():
logger
.
info
(
"{}:"
.
format
(
sec
))
for
k
,
v
in
sec_items
.
items
():
logger
.
info
(
" {}:{}"
.
format
(
k
,
v
))
logger
.
info
(
"-------------------------------------------------"
)
PaddleCV/video/infer.py
浏览文件 @
e67f0c39
...
...
@@ -83,8 +83,7 @@ def infer(args):
# parse config
config
=
parse_config
(
args
.
config
)
infer_config
=
merge_configs
(
config
,
'infer'
,
vars
(
args
))
logger
.
info
(
"############### infer config ###############"
)
print_configs
(
infer_config
)
print_configs
(
infer_config
,
"Infer"
)
infer_model
=
models
.
get_model
(
args
.
model_name
,
infer_config
,
mode
=
'infer'
)
infer_model
.
build_input
(
use_pyreader
=
False
)
infer_model
.
build_model
()
...
...
PaddleCV/video/scripts/infer/infer_attention_cluster.sh
浏览文件 @
e67f0c39
python infer.py
--model_name
=
"AttentionCluster"
--config
=
./configs/attention_cluster.txt
\
--filelist
=
./data/youtube8m/infer.list
\
--filelist
=
./data
set
/youtube8m/infer.list
\
--weights
=
./checkpoints/AttentionCluster_epoch0
\
--save_dir
=
"./save"
PaddleCV/video/scripts/infer/infer_attention_lstm.sh
浏览文件 @
e67f0c39
python infer.py
--model_name
=
"AttentionLSTM"
--config
=
./configs/attention_lstm.txt
\
--filelist
=
./data/youtube8m/infer.list
\
--filelist
=
./data
set
/youtube8m/infer.list
\
--weights
=
./checkpoints/AttentionLSTM_epoch0
\
--save_dir
=
"./save"
PaddleCV/video/scripts/infer/infer_nextvlad.sh
浏览文件 @
e67f0c39
python infer.py
--model_name
=
"NEXTVLAD"
--config
=
./configs/nextvlad.txt
--filelist
=
./data/youtube8m/infer.list
\
python infer.py
--model_name
=
"NEXTVLAD"
--config
=
./configs/nextvlad.txt
--filelist
=
./data
set
/youtube8m/infer.list
\
--weights
=
./checkpoints/NEXTVLAD_epoch0
\
--save_dir
=
"./save"
PaddleCV/video/scripts/infer/infer_stnet.sh
浏览文件 @
e67f0c39
python infer.py
--model_name
=
"STNET"
--config
=
./configs/stnet.txt
--filelist
=
./data/kinetics/infer.list
\
python infer.py
--model_name
=
"STNET"
--config
=
./configs/stnet.txt
--filelist
=
./data
set
/kinetics/infer.list
\
--log_interval
=
10
--weights
=
./checkpoints/STNET_epoch0
--save_dir
=
./save
PaddleCV/video/scripts/infer/infer_tsm.sh
浏览文件 @
e67f0c39
python infer.py
--model_name
=
"TSM"
--config
=
./configs/tsm.txt
--filelist
=
./data/kinetics/infer.list
\
python infer.py
--model_name
=
"TSM"
--config
=
./configs/tsm.txt
--filelist
=
./data
set
/kinetics/infer.list
\
--log_interval
=
10
--weights
=
./checkpoints/TSM_epoch0
--save_dir
=
./save
PaddleCV/video/scripts/infer/infer_tsn.sh
浏览文件 @
e67f0c39
python infer.py
--model_name
=
"TSN"
--config
=
./configs/tsn.txt
--filelist
=
./data/kinetics/infer.list
\
python infer.py
--model_name
=
"TSN"
--config
=
./configs/tsn.txt
--filelist
=
./data
set
/kinetics/infer.list
\
--log_interval
=
10
--weights
=
./checkpoints/TSN_epoch0
--save_dir
=
./save
PaddleCV/video/test.py
浏览文件 @
e67f0c39
...
...
@@ -68,8 +68,7 @@ def test(args):
# parse config
config
=
parse_config
(
args
.
config
)
test_config
=
merge_configs
(
config
,
'test'
,
vars
(
args
))
logger
.
info
(
"############### test config ###############"
)
print_configs
(
test_config
)
print_configs
(
test_config
,
"Test"
)
# build model
test_model
=
models
.
get_model
(
args
.
model_name
,
test_config
,
mode
=
'test'
)
...
...
PaddleCV/video/train.py
浏览文件 @
e67f0c39
...
...
@@ -107,8 +107,7 @@ def train(args):
config
=
parse_config
(
args
.
config
)
train_config
=
merge_configs
(
config
,
'train'
,
vars
(
args
))
valid_config
=
merge_configs
(
config
,
'valid'
,
vars
(
args
))
logger
.
info
(
"############### train config ###############"
)
print_configs
(
train_config
)
print_configs
(
train_config
,
'Train'
)
train_model
=
models
.
get_model
(
args
.
model_name
,
train_config
,
mode
=
'train'
)
valid_model
=
models
.
get_model
(
args
.
model_name
,
valid_config
,
mode
=
'valid'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录