forked from happyharrycn/actionformer_release
-
Notifications
You must be signed in to change notification settings - Fork 1
/
thumos_r21d-rgb-vf
51 lines (50 loc) · 1.16 KB
/
thumos_r21d-rgb-vf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# These are the thumos features extracted from chrisindris/video-features
dataset_name: thumos
train_split: ['validation']
val_split: ['test']
dataset: {
json_file: /data/i5O/THUMOS14/annotations/thumos14.json,
feat_folder: ./data/r21d/r2plus1d_18_16_kinetics/,
file_prefix: ~,
file_ext: _r21d.npy,
num_classes: 20,
input_dim: 2048,
feat_stride: 4,
num_frames: 16,
# serve as data augmentation
trunc_thresh: 0.5,
crop_ratio: [0.9, 1.0],
max_seq_len: 2304,
}
model: {
fpn_type: identity,
max_buffer_len_factor: 6.0,
n_mha_win_size: 19,
}
opt: {
learning_rate: 0.0001,
epochs: 30,
weight_decay: 0.05,
}
loader: {
batch_size: 2,
}
train_cfg: {
init_loss_norm: 100,
clip_grad_l2norm: 1.0,
cls_prior_prob: 0.01,
center_sample: radius,
center_sample_radius: 1.5,
}
test_cfg: {
voting_thresh: 0.7,
pre_nms_topk: 2000,
max_seg_num: 200,
min_score: 0.001,
# when using external scores, our model is generating "proposals"
# multiclass_nms: False,
# ext_score_file: ./data/thumos/annotations/thumos14_cls_scores.pkl,
# comment out L47-48 and uncomment L50 to disable score fusion
multiclass_nms: True,
}
output_folder: ./ckpt/