Skip to content

Commit

Permalink
Fix SRD config
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshitomo-matsubara committed May 26, 2024
1 parent 40c231b commit 6f12253
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions configs/sample/ilsvrc2012/srd/resnet18_from_resnet34.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ train:
sequential: []
forward_hook:
input: []
output: ['model.layer4']
wrapper: 'DataParallel'
output: ['model.layer4', 'norm_layer']
wrapper:
requires_grad: False
student:
forward_proc: 'forward_batch_only'
Expand All @@ -139,8 +139,8 @@ train:
frozen_modules: []
forward_hook:
input: []
output: ['model.layer4']
wrapper: 'DataParallel'
output: ['model.layer4', 'norm_layer']
wrapper:
requires_grad: True
optimizer:
key: 'SGD'
Expand Down Expand Up @@ -176,9 +176,9 @@ train:
criterion:
key: 'SRDLoss'
kwargs:
student_feature_module_path: 'model.layer4'
student_feature_module_path: 'norm_layer'
student_feature_module_io: 'output'
teacher_feature_module_path: 'model.layer4'
teacher_feature_module_path: 'norm_layer'
teacher_feature_module_io: 'output'
student_linear_module_path: '.'
student_linear_module_io: 'output'
Expand Down

0 comments on commit 6f12253

Please sign in to comment.