未验证 提交 a6de2c48 编写于 作者: G gaotingquan

fix: dml -> udml

上级 44c6edec
...@@ -26,27 +26,42 @@ Arch: ...@@ -26,27 +26,42 @@ Arch:
pretrained_list: pretrained_list:
# if not null, its lengths should be same as models # if not null, its lengths should be same as models
freeze_params_list: freeze_params_list:
- True - False
- False - False
use_sync_bn: True use_sync_bn: True
models: models:
- Teacher: - Teacher:
name: ResNet101_vd name: PPLCNet_x1_0
class_num: *class_num class_num: *class_num
pretrained: pretrained/teacher_ResNet101_vd_0/ResNet101_vd/best_model pretrained: True
use_ssld: True
return_stages: True
return_patterns: ["blocks3", "blocks4", "blocks5", "blocks6"]
- Student: - Student:
name: PPLCNet_x1_0 name: PPLCNet_x1_0
class_num: *class_num class_num: *class_num
pretrained: True pretrained: True
use_ssld: True use_ssld: True
return_stages: True
return_patterns: ["blocks3", "blocks4", "blocks5", "blocks6"]
infer_model_name: "Student" infer_model_name: "Student"
# loss function config for traing/eval process # loss function config for traing/eval process
Loss: Loss:
Train: Train:
- DistillationGTCELoss:
weight: 1.0
key: logits
model_names: ["Student", "Teacher"]
- DistillationDMLLoss: - DistillationDMLLoss:
weight: 1.0 weight: 1.0
key: logits
model_name_pairs:
- ["Student", "Teacher"]
- DistillationDistanceLoss:
weight: 1.0
key: "blocks4"
model_name_pairs: model_name_pairs:
- ["Student", "Teacher"] - ["Student", "Teacher"]
Eval: Eval:
......
...@@ -30,11 +30,7 @@ search_dict: ...@@ -30,11 +30,7 @@ search_dict:
- [0.0, 0.4, 0.4, 0.8, 0.8, 1.0] - [0.0, 0.4, 0.4, 0.8, 0.8, 1.0]
- [1.0, 1.0, 1.0, 1.0, 1.0, 1.0] - [1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
teacher: teacher:
rm_keys: algorithm: "udml"
- Arch.lr_mult_list
search_values:
- ResNet101_vd
- ResNet50_vd
final_replace: final_replace:
Arch.lr_mult_list: Arch.models.1.Student.lr_mult_list Arch.lr_mult_list: Arch.models.1.Student.lr_mult_list
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册