forked from LutingWang/OADP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoadp_ov_lvis.py
34 lines (33 loc) · 843 Bytes
/
oadp_ov_lvis.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
_base_ = [
'datasets/ov_lvis.py',
# 'models/vild_ensemble_faster_rcnn_r50_fpn.py',
# 'models/block.py',
'models/oadp_faster_rcnn_r50_fpn.py',
'models/mask.py',
'schedules/2x.py',
'base.py',
]
cls_predictor_cfg = dict(
type='ViLDClassifier',
prompts='data/prompts/detpro_lvis.pth',
scaler=dict(
train=0.01,
val=0.007,
),
)
model = dict(
# type='OADP',
global_head=dict(
classifier=dict(
type='ViLDClassifier',
prompts='data/prompts/detpro_lvis.pth',
out_features=1203,
),
),
roi_head=dict(
# type='OADPRoIHead',
bbox_head=dict(cls_predictor_cfg=cls_predictor_cfg),
object_head=dict(cls_predictor_cfg=cls_predictor_cfg),
block_head=dict(cls_predictor_cfg=cls_predictor_cfg),
),
)