-
Notifications
You must be signed in to change notification settings - Fork 0
/
petr_r50_8x1_100e_coco_t900_group5_ffn2x_dp0_custom.py
60 lines (57 loc) · 1.89 KB
/
petr_r50_8x1_100e_coco_t900_group5_ffn2x_dp0_custom.py
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
52
53
54
55
56
57
58
59
_base_ = './petr_r50_8x1_100e_coco_custom.py'
model = dict(
bbox_head=dict(
num_queries_one2many = 900,
k_one2many = 5,
transformer=dict(
two_stage_num_proposals=1200,
encoder=dict(
transformerlayers=dict(
ffn_dropout=0.0,
),
),
decoder=dict(
transformerlayers=dict(
attn_cfgs=[
dict(
type="mmcv.MultiheadAttention",
embed_dims=256,
num_heads=8,
dropout=0.0,
),
dict(
type="opera.MultiScaleDeformablePoseAttention",
embed_dims=256,
),
],
feedforward_channels=2048,
ffn_dropout=0.0,
),
),
hm_encoder=dict(
transformerlayers=dict(
ffn_dropout=0.0,
),
),
refine_decoder=dict(
transformerlayers=dict(
attn_cfgs=[
dict(
type="mmcv.MultiheadAttention",
embed_dims=256,
num_heads=8,
dropout=0.0,
),
dict(
type="mmcv.MultiScaleDeformableAttention",
embed_dims=256,
im2col_step=128,
),
],
feedforward_channels=2048,
ffn_dropout=0.0,
),
),
),
),
) # set 'max_per_img=20' for time counting