Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openvinotoolkit
mmaction2
提交
44a97ed8
M
mmaction2
项目概览
openvinotoolkit
/
mmaction2
10 个月 前同步成功
通知
2
Star
5
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mmaction2
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
44a97ed8
编写于
6月 16, 2020
作者:
X
xusu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[fix]change all bs/lr to 8 gpus setting and fix bugs
minor
上级
94f2d6ee
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
46 addition
and
58 deletion
+46
-58
configs/recognition/r2plus1d/r2plus1d_r34_3d_32x2x1_180e_kinetics400_rgb.py
...n/r2plus1d/r2plus1d_r34_3d_32x2x1_180e_kinetics400_rgb.py
+2
-8
configs/recognition/r2plus1d/r2plus1d_r34_8x8x1_180e_kinetics400_rgb.py
...ition/r2plus1d/r2plus1d_r34_8x8x1_180e_kinetics400_rgb.py
+2
-8
configs/recognition/r2plus1d/r2plus1d_r34_video_3d_8x8x1_180e_kinetics400_rgb.py
...lus1d/r2plus1d_r34_video_3d_8x8x1_180e_kinetics400_rgb.py
+2
-2
configs/recognition/slowfast/README.md
configs/recognition/slowfast/README.md
+1
-1
configs/recognition/slowfast/slowfast_r50_3d_4x16x1_256e_kinetics400_rgb.py
...n/slowfast/slowfast_r50_3d_4x16x1_256e_kinetics400_rgb.py
+7
-10
configs/recognition/slowfast/slowfast_r50_3d_8x8x1_256e_kinetics400_rgb.py
...on/slowfast/slowfast_r50_3d_8x8x1_256e_kinetics400_rgb.py
+6
-10
configs/recognition/slowfast/slowfast_r50_video_3d_4x16x1_256e_kinetics400_rgb.py
...fast/slowfast_r50_video_3d_4x16x1_256e_kinetics400_rgb.py
+5
-9
configs/recognition/tsn/tsn_r101_1x1x5_50e_mmit_rgb.py
configs/recognition/tsn/tsn_r101_1x1x5_50e_mmit_rgb.py
+3
-3
configs/recognition/tsn/tsn_r50_1x1x6_100e_mit_rgb.py
configs/recognition/tsn/tsn_r50_1x1x6_100e_mit_rgb.py
+15
-4
configs/recognition/tsn/tsn_r50_1x1x8_50e_sthv1_rgb.py
configs/recognition/tsn/tsn_r50_1x1x8_50e_sthv1_rgb.py
+0
-0
configs/recognition/tsn/tsn_r50_1x1x8_50e_sthv2_rgb.py
configs/recognition/tsn/tsn_r50_1x1x8_50e_sthv2_rgb.py
+3
-3
未找到文件。
configs/recognition/r2plus1d/r2plus1d_r34_3d_32x2x1_180e_kinetics400_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -104,16 +104,10 @@ data = dict(
pipeline
=
test_pipeline
,
test_mode
=
True
))
# optimizer
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.
1
5
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.
07
5
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer_config
=
dict
(
grad_clip
=
dict
(
max_norm
=
40
,
norm_type
=
2
))
# learning policy
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
,
warmup
=
'linear'
,
warmup_ratio
=
0.1
,
warmup_byepoch
=
True
,
warmup_iters
=
40
)
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
)
total_epochs
=
180
checkpoint_config
=
dict
(
interval
=
5
)
evaluation
=
dict
(
...
...
configs/recognition/r2plus1d/r2plus1d_r34_8x8x1_180e_kinetics400_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -104,16 +104,10 @@ data = dict(
pipeline
=
test_pipeline
,
test_mode
=
True
))
# optimizer
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.
4
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.
2
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer_config
=
dict
(
grad_clip
=
dict
(
max_norm
=
40
,
norm_type
=
2
))
# learning policy
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
,
warmup
=
'linear'
,
warmup_ratio
=
0.1
,
warmup_byepoch
=
True
,
warmup_iters
=
40
)
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
)
total_epochs
=
180
checkpoint_config
=
dict
(
interval
=
5
)
evaluation
=
dict
(
...
...
configs/recognition/r2plus1d/r2plus1d_r34_video_3d_8x8x1_180e_kinetics400_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -88,7 +88,7 @@ test_pipeline = [
dict
(
type
=
'ToTensor'
,
keys
=
[
'imgs'
])
]
data
=
dict
(
videos_per_gpu
=
24
,
videos_per_gpu
=
16
,
workers_per_gpu
=
4
,
train
=
dict
(
type
=
dataset_type
,
...
...
@@ -108,7 +108,7 @@ data = dict(
pipeline
=
test_pipeline
,
test_mode
=
True
))
# optimizer
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.
6
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.
2
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer_config
=
dict
(
grad_clip
=
dict
(
max_norm
=
40
,
norm_type
=
2
))
# learning policy
lr_config
=
dict
(
...
...
configs/recognition/slowfast/README.md
浏览文件 @
44a97ed8
# Slowfast
config | pretrain | top1 acc| top5 acc | gpu_mem(M) | iter time(s) | ckpt | log
-|-|-|-|-|-|- | -
slowfast_r50_3d_4x16x1_256e_kinetics400_rgb | None |
-|-
|9156|1.05|
[
ckpt
](
)|
[
log
]
()
slowfast_r50_3d_4x16x1_256e_kinetics400_rgb | None |
75.3|92.2
|9156|1.05|
[
ckpt
](
)|
[
log
]
()
slowfast_r50_3d_8x8x1_256e_kinetics400_rgb|None|-|-|7402|0.84|
[
ckpt
](
)
|
[
log
](
)
configs/recognition/slowfast/slowfast_r50_3d_4x16x1_256e_kinetics400_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -15,7 +15,8 @@ model = dict(
dilations
=
(
1
,
1
,
1
,
1
),
conv1_stride_t
=
1
,
pool1_stride_t
=
1
,
inflate
=
(
0
,
0
,
1
,
1
)),
inflate
=
(
0
,
0
,
1
,
1
),
norm_eval
=
False
),
fast_pathway
=
dict
(
type
=
'resnet3d'
,
depth
=
50
,
...
...
@@ -24,7 +25,9 @@ model = dict(
base_channels
=
8
,
conv1_kernel
=
(
5
,
7
,
7
),
conv1_stride_t
=
1
,
pool1_stride_t
=
1
)),
pool1_stride_t
=
1
,
norm_eval
=
False
),
),
cls_head
=
dict
(
in_channels
=
2304
,
# 2048+256
num_classes
=
400
,
...
...
@@ -32,7 +35,7 @@ model = dict(
spatial_type
=
'avg'
,
dropout_ratio
=
0.5
))
train_cfg
=
None
test_cfg
=
dict
(
average_clips
=
None
)
test_cfg
=
dict
(
average_clips
=
'prob'
)
dataset_type
=
'RawframeDataset'
data_root
=
'data/kinetics400/rawframes_train/'
data_root_val
=
'data/kinetics400/rawframes_val/'
...
...
@@ -111,13 +114,7 @@ data = dict(
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.1
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer_config
=
dict
(
grad_clip
=
dict
(
max_norm
=
40
,
norm_type
=
2
))
# learning policy
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
,
warmup
=
'linear'
,
warmup_ratio
=
0.01
,
warmup_byepoch
=
True
,
warmup_iters
=
34
)
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
)
total_epochs
=
256
checkpoint_config
=
dict
(
interval
=
4
)
workflow
=
[(
'train'
,
1
)]
...
...
configs/recognition/slowfast/slowfast_r50_3d_8x8x1_256e_kinetics400_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -15,7 +15,8 @@ model = dict(
dilations
=
(
1
,
1
,
1
,
1
),
conv1_stride_t
=
1
,
pool1_stride_t
=
1
,
inflate
=
(
0
,
0
,
1
,
1
)),
inflate
=
(
0
,
0
,
1
,
1
),
norm_eval
=
False
),
fast_pathway
=
dict
(
type
=
'resnet3d'
,
depth
=
50
,
...
...
@@ -24,7 +25,8 @@ model = dict(
base_channels
=
8
,
conv1_kernel
=
(
5
,
7
,
7
),
conv1_stride_t
=
1
,
pool1_stride_t
=
1
)),
pool1_stride_t
=
1
,
norm_eval
=
False
)),
cls_head
=
dict
(
in_channels
=
2304
,
# 2048+256
num_classes
=
400
,
...
...
@@ -32,7 +34,7 @@ model = dict(
spatial_type
=
'avg'
,
dropout_ratio
=
0.5
))
train_cfg
=
None
test_cfg
=
dict
(
average_clips
=
None
)
test_cfg
=
dict
(
average_clips
=
'prob'
)
dataset_type
=
'RawframeDataset'
data_root
=
'data/kinetics400/rawframes_train/'
data_root_val
=
'data/kinetics400/rawframes_val/'
...
...
@@ -111,13 +113,7 @@ data = dict(
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.1
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer_config
=
dict
(
grad_clip
=
dict
(
max_norm
=
40
,
norm_type
=
2
))
# learning policy
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
,
warmup
=
'linear'
,
warmup_ratio
=
0.01
,
warmup_byepoch
=
True
,
warmup_iters
=
34
)
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
)
total_epochs
=
256
checkpoint_config
=
dict
(
interval
=
4
)
workflow
=
[(
'train'
,
1
)]
...
...
configs/recognition/slowfast/slowfast_r50_video_3d_4x16x1_256e_kinetics400_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -15,7 +15,8 @@ model = dict(
dilations
=
(
1
,
1
,
1
,
1
),
conv1_stride_t
=
1
,
pool1_stride_t
=
1
,
inflate
=
(
0
,
0
,
1
,
1
)),
inflate
=
(
0
,
0
,
1
,
1
),
norm_eval
=
False
),
fast_pathway
=
dict
(
type
=
'resnet3d'
,
depth
=
50
,
...
...
@@ -24,7 +25,8 @@ model = dict(
base_channels
=
8
,
conv1_kernel
=
(
5
,
7
,
7
),
conv1_stride_t
=
1
,
pool1_stride_t
=
1
)),
pool1_stride_t
=
1
,
norm_eval
=
False
)),
cls_head
=
dict
(
in_channels
=
2304
,
# 2048+256
num_classes
=
400
,
...
...
@@ -114,13 +116,7 @@ data = dict(
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.1
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer_config
=
dict
(
grad_clip
=
dict
(
max_norm
=
40
,
norm_type
=
2
))
# learning policy
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
,
warmup
=
'linear'
,
warmup_ratio
=
0.01
,
warmup_byepoch
=
True
,
warmup_iters
=
34
)
lr_config
=
dict
(
policy
=
'CosineAnealing'
,
min_lr
=
0
)
total_epochs
=
256
checkpoint_config
=
dict
(
interval
=
4
)
workflow
=
[(
'train'
,
1
)]
...
...
configs/recognition/tsn/tsn_r101_1x1x5_
6
0e_mmit_rgb.py
→
configs/recognition/tsn/tsn_r101_1x1x5_
5
0e_mmit_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -112,14 +112,14 @@ optimizer = dict(
type
=
'SGD'
,
constructor
=
'TSMOptimizerConstructor'
,
paramwise_cfg
=
dict
(
fc_lr5
=
True
),
lr
=
0.0
2
,
lr
=
0.0
1
,
momentum
=
0.9
,
weight_decay
=
0.0001
,
)
optimizer_config
=
dict
(
grad_clip
=
dict
(
max_norm
=
20
,
norm_type
=
2
))
# learning policy
lr_config
=
dict
(
policy
=
'step'
,
step
=
[
20
,
40
])
total_epochs
=
6
0
total_epochs
=
5
0
checkpoint_config
=
dict
(
interval
=
5
)
evaluation
=
dict
(
interval
=
5
,
metrics
=
[
'mean_average_precision'
])
# yapf:disable
...
...
@@ -132,7 +132,7 @@ log_config = dict(
# runtime settings
dist_params
=
dict
(
backend
=
'nccl'
)
log_level
=
'INFO'
work_dir
=
'./work_dirs/tsn_r101_1x1x5_
6
0e_mmit_rgb/'
work_dir
=
'./work_dirs/tsn_r101_1x1x5_
5
0e_mmit_rgb/'
load_from
=
None
resume_from
=
None
workflow
=
[(
'train'
,
1
)]
configs/recognition/tsn/tsn_r50_1x1x6_100e_mit_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -48,7 +48,12 @@ train_pipeline = [
dict
(
type
=
'ToTensor'
,
keys
=
[
'imgs'
,
'label'
])
]
val_pipeline
=
[
dict
(
type
=
'SampleFrames'
,
clip_len
=
1
,
frame_interval
=
1
,
num_clips
=
6
),
dict
(
type
=
'SampleFrames'
,
clip_len
=
1
,
frame_interval
=
1
,
num_clips
=
6
,
test_mode
=
True
),
dict
(
type
=
'FrameSelector'
,
io_backend
=
'memcached'
,
**
mc_cfg
),
dict
(
type
=
'Resize'
,
scale
=
(
-
1
,
256
)),
dict
(
type
=
'CenterCrop'
,
crop_size
=
224
),
...
...
@@ -59,7 +64,12 @@ val_pipeline = [
dict
(
type
=
'ToTensor'
,
keys
=
[
'imgs'
])
]
test_pipeline
=
[
dict
(
type
=
'SampleFrames'
,
clip_len
=
1
,
frame_interval
=
1
,
num_clips
=
6
),
dict
(
type
=
'SampleFrames'
,
clip_len
=
1
,
frame_interval
=
1
,
num_clips
=
6
,
test_mode
=
True
),
dict
(
type
=
'FrameSelector'
,
io_backend
=
'memcached'
,
**
mc_cfg
),
dict
(
type
=
'Resize'
,
scale
=
(
-
1
,
256
)),
dict
(
type
=
'ThreeCrop'
,
crop_size
=
256
),
...
...
@@ -70,8 +80,8 @@ test_pipeline = [
dict
(
type
=
'ToTensor'
,
keys
=
[
'imgs'
])
]
data
=
dict
(
videos_per_gpu
=
16
,
workers_per_gpu
=
2
,
videos_per_gpu
=
32
,
workers_per_gpu
=
4
,
train
=
dict
(
type
=
dataset_type
,
ann_file
=
ann_file_train
,
...
...
@@ -106,3 +116,4 @@ log_level = 'INFO'
work_dir
=
'./work_dirs/tsn_r50_1x1x6_100e_mit_rgb'
load_from
=
None
resume_from
=
None
workflow
=
[(
'train'
,
1
)]
configs/recognition/tsn/tsn_r50_1x1x8_
2
0e_sthv1_rgb.py
→
configs/recognition/tsn/tsn_r50_1x1x8_
5
0e_sthv1_rgb.py
浏览文件 @
44a97ed8
文件已移动
configs/recognition/tsn/tsn_r50_1x1x8_50e_sthv2_rgb.py
浏览文件 @
44a97ed8
...
...
@@ -67,7 +67,7 @@ test_pipeline = [
dict
(
type
=
'ToTensor'
,
keys
=
[
'imgs'
])
]
data
=
dict
(
videos_per_gpu
=
4
,
videos_per_gpu
=
16
,
workers_per_gpu
=
2
,
train
=
dict
(
type
=
dataset_type
,
...
...
@@ -85,10 +85,10 @@ data = dict(
data_prefix
=
data_root_val
,
pipeline
=
test_pipeline
))
# optimizer
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.0
1
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer
=
dict
(
type
=
'SGD'
,
lr
=
0.0
2
,
momentum
=
0.9
,
weight_decay
=
0.0001
)
optimizer_config
=
dict
(
grad_clip
=
dict
(
max_norm
=
40
,
norm_type
=
2
))
# learning policy
lr_config
=
dict
(
policy
=
'step'
,
step
=
[
40
,
8
0
])
lr_config
=
dict
(
policy
=
'step'
,
step
=
[
20
,
4
0
])
total_epochs
=
50
checkpoint_config
=
dict
(
interval
=
5
)
evaluation
=
dict
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录