-
Notifications
You must be signed in to change notification settings - Fork 18
/
mv1_sd_img.py
32 lines (28 loc) · 884 Bytes
/
mv1_sd_img.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
_base_ = [
'../../mobilenet_v1/mobilenet_v1.py'
]
# model settings
find_unused_parameters = False
# distillation settings
sd = True
# config settings
uskd = True
# method details
distiller = dict(
type='ClassificationDistiller',
teacher_pretrained = None,
sd = sd,
distill_cfg = [dict(methods=[dict(type='USKDLoss',
name='loss_uskd',
use_this=uskd,
channel=512,
alpha=1,
beta=0.1,
mu=0.005,
)
]
),
]
)
student_cfg = 'configs/mobilenet_v1/mobilenet_v1.py'
teacher_cfg = 'configs/mobilenet_v1/mobilenet_v1.py'