-
Notifications
You must be signed in to change notification settings - Fork 4
/
oadp_ov_coco.py
45 lines (44 loc) · 1.02 KB
/
oadp_ov_coco.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
_base_ = [
'datasets/ov_coco.py',
'models/oadp_faster_rcnn_r50_fpn.py',
'schedules/40k.py',
'base.py',
]
model = dict(
global_head=dict(
classifier=dict(
type='Classifier',
prompts='data/prompts/ml_coco.pth',
out_features=65,
),
),
roi_head=dict(
bbox_head=dict(
cls_predictor_cfg=dict(
type='ViLDClassifier',
prompts='data/prompts/vild.pth',
),
),
object_head=dict(
cls_predictor_cfg=dict(
type='Classifier',
prompts='data/prompts/ml_coco.pth',
),
),
block_head=dict(
cls_predictor_cfg=dict(
type='Classifier',
prompts='data/prompts/ml_coco.pth',
),
),
),
)
trainer = dict(
optimizer=dict(
paramwise_cfg=dict(
custom_keys={
'roi_head.bbox_head': dict(lr_mult=0.5),
},
),
),
)