-
Notifications
You must be signed in to change notification settings - Fork 7
/
macc_bezier_10k.py
45 lines (40 loc) · 1.54 KB
/
macc_bezier_10k.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_ = [
'../../configs/_base_/models/deeplabv3plus_r50-d8.py',
'../../configs/_base_/datasets/pascal_voc12_aug.py', '../../configs/_base_/default_runtime.py',
'../../configs/_base_/schedules/schedule_20k.py'
]
optimizer = dict(
type='SGD', lr=0.02,
paramwise_cfg = dict(
custom_keys={
'head': dict(lr_mult=10.)}))
# optimizer_config = dict(type='Fp16OptimizerHook', loss_scale=512.)
load_from = None
resume_from = None
runner = dict(max_iters=10000)
data = dict(
samples_per_gpu=8,
workers_per_gpu=4
)
model = dict(pretrained='open-mmlab://resnet101_v1c',
backbone=dict(depth=101),
decode_head=dict(
num_classes=21,
loss_decode=dict(
_delete_=True,
type='AutoSegLoss',
target_metric='mAcc',
num_class=21,
theta=[2.1453928e-02, 7.3905742e-01, 4.1163361e-01, 7.9865617e-01, 9.1986191e-01, 9.5041156e-01],
parameterization='bezier',
loss_weight=1.0)),
auxiliary_head=dict(
num_classes=21,
loss_decode=dict(
_delete_=True,
type='AutoSegLoss',
target_metric='mAcc',
num_class=21,
theta=[2.1453928e-02, 7.3905742e-01, 4.1163361e-01, 7.9865617e-01, 9.1986191e-01, 9.5041156e-01],
parameterization='bezier',
loss_weight=0.4)))