Skip to content

Commit 701e705

Browse files
Merge pull request #489 from yoshitomo-matsubara/dev
Update with PyTorch Hub links
2 parents 55614f2 + ea43060 commit 701e705

7 files changed

+31
-24
lines changed

configs/sample/ilsvrc2012/ghnd/custom_densenet169_from_densenet169.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ models:
6868
weights: !getattr [*teacher_weights, 'IMAGENET1K_V1']
6969
src_ckpt:
7070
student_model:
71+
repo_or_dir: 'yoshitomo-matsubara/sc2-benchmark'
7172
key: &student_model_key 'custom_densenet169'
7273
_weights: &student_weights !import_get
7374
key: 'torchvision.models.densenet.DenseNet169_Weights'
@@ -120,11 +121,11 @@ train:
120121
student:
121122
forward_proc: 'forward_batch_only'
122123
adaptations:
123-
sequential: ['features']
124+
sequential: ['bottleneck_layer', 'features']
124125
frozen_modules: ['features.denseblock3', 'features.transition3', 'features.denseblock4', 'features.norm5']
125126
forward_hook:
126127
input: []
127-
output: ['features.bottleneck', 'features.transition3', 'features.denseblock4']
128+
output: ['bottleneck_layer', 'features.transition3', 'features.denseblock4']
128129
wrapper: 'DistributedDataParallel'
129130
requires_grad: True
130131
optimizer:
@@ -150,7 +151,7 @@ train:
150151
kwargs:
151152
input:
152153
is_from_teacher: False
153-
module_path: 'features.bottleneck'
154+
module_path: 'bottleneck_layer'
154155
io: 'output'
155156
target:
156157
is_from_teacher: True

configs/sample/ilsvrc2012/ghnd/custom_densenet201_from_densenet201.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ models:
6868
weights: !getattr [*teacher_weights, 'IMAGENET1K_V1']
6969
src_ckpt:
7070
student_model:
71+
repo_or_dir: 'yoshitomo-matsubara/sc2-benchmark'
7172
key: &student_model_key 'custom_densenet201'
7273
_weights: &student_weights !import_get
7374
key: 'torchvision.models.densenet.DenseNet201_Weights'
@@ -120,11 +121,11 @@ train:
120121
student:
121122
forward_proc: 'forward_batch_only'
122123
adaptations:
123-
sequential: ['features']
124+
sequential: ['bottleneck_layer', 'features']
124125
frozen_modules: ['features.denseblock3', 'features.transition3', 'features.denseblock4', 'features.norm5']
125126
forward_hook:
126127
input: []
127-
output: ['features.bottleneck', 'features.transition3', 'features.denseblock4']
128+
output: ['bottleneck_layer', 'features.transition3', 'features.denseblock4']
128129
wrapper: 'DistributedDataParallel'
129130
requires_grad: True
130131
optimizer:
@@ -150,7 +151,7 @@ train:
150151
kwargs:
151152
input:
152153
is_from_teacher: False
153-
module_path: 'features.bottleneck'
154+
module_path: 'bottleneck_layer'
154155
io: 'output'
155156
target:
156157
is_from_teacher: True

configs/sample/ilsvrc2012/ghnd/custom_inception_v3_from_inception_v3.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ models:
6868
weights: !getattr [*teacher_weights, 'IMAGENET1K_V1']
6969
src_ckpt:
7070
student_model:
71+
repo_or_dir: 'yoshitomo-matsubara/sc2-benchmark'
7172
key: &student_model_key 'custom_inception_v3'
7273
_weights: &student_weights !import_get
7374
key: 'torchvision.models.inception.Inception_V3_Weights'
@@ -131,11 +132,11 @@ train:
131132
student:
132133
forward_proc: 'forward_batch_only'
133134
adaptations:
134-
sequential: ['bottleneck_layer', 'Mixed_5b', 'Mixed_5c', 'Mixed_5d', 'Mixed_6a', 'Mixed_6b', 'Mixed_6c', 'Mixed_6d', 'Mixed_6e', 'Mixed_7a', 'Mixed_7b', 'Mixed_7c']
135-
frozen_modules: ['Mixed_5b', 'Mixed_5c', 'Mixed_5d', 'Mixed_6a', 'Mixed_6b', 'Mixed_6c', 'Mixed_6d', 'Mixed_6e', 'Mixed_7a', 'Mixed_7b', 'Mixed_7c']
135+
sequential: ['bottleneck_layer', 'inception_modules']
136+
frozen_modules: ['inception_modules.Mixed_5c', 'inception_modules.Mixed_5d', 'inception_modules.Mixed_6a', 'inception_modules.Mixed_6b', 'inception_modules.Mixed_6c', 'inception_modules.Mixed_6d', 'inception_modules.Mixed_6e', 'inception_modules.Mixed_7a', 'inception_modules.Mixed_7b', 'inception_modules.Mixed_7c']
136137
forward_hook:
137138
input: []
138-
output: ['bottleneck_layer', 'Mixed_5d', 'Mixed_6e', 'Mixed_7c']
139+
output: ['bottleneck_layer', 'inception_modules.Mixed_5d', 'inception_modules.Mixed_6e', 'inception_modules.Mixed_7c']
139140
wrapper: 'DistributedDataParallel'
140141
requires_grad: True
141142
optimizer:
@@ -178,7 +179,7 @@ train:
178179
kwargs:
179180
input:
180181
is_from_teacher: False
181-
module_path: 'Mixed_5d'
182+
module_path: 'inception_modules.Mixed_5d'
182183
io: 'output'
183184
target:
184185
is_from_teacher: True
@@ -195,7 +196,7 @@ train:
195196
kwargs:
196197
input:
197198
is_from_teacher: False
198-
module_path: 'Mixed_6e'
199+
module_path: 'inception_modules.Mixed_6e'
199200
io: 'output'
200201
target:
201202
is_from_teacher: True
@@ -212,7 +213,7 @@ train:
212213
kwargs:
213214
input:
214215
is_from_teacher: False
215-
module_path: 'Mixed_7c'
216+
module_path: 'inception_modules.Mixed_7c'
216217
io: 'output'
217218
target:
218219
is_from_teacher: True

configs/sample/ilsvrc2012/ghnd/custom_resnet152_from_resnet152.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ models:
6868
weights: !getattr [*teacher_weights, 'IMAGENET1K_V1']
6969
src_ckpt:
7070
student_model:
71+
repo_or_dir: 'yoshitomo-matsubara/sc2-benchmark'
7172
key: &student_model_key 'custom_resnet152'
7273
_weights: &student_weights !import_get
7374
key: 'torchvision.models.resnet.ResNet152_Weights'
@@ -120,11 +121,11 @@ train:
120121
student:
121122
forward_proc: 'forward_batch_only'
122123
adaptations:
123-
sequential: ['bottleneck', 'layer3', 'layer4']
124+
sequential: ['bottleneck_layer', 'layer3', 'layer4']
124125
frozen_modules: ['layer3', 'layer4']
125126
forward_hook:
126127
input: []
127-
output: ['bottleneck', 'layer3', 'layer4']
128+
output: ['bottleneck_layer', 'layer3', 'layer4']
128129
wrapper: 'DistributedDataParallel'
129130
requires_grad: True
130131
optimizer:
@@ -150,7 +151,7 @@ train:
150151
kwargs:
151152
input:
152153
is_from_teacher: False
153-
module_path: 'bottleneck'
154+
module_path: 'bottleneck_layer'
154155
io: 'output'
155156
target:
156157
is_from_teacher: True

configs/sample/ilsvrc2012/hnd/custom_densenet169_from_densenet169.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ models:
6868
weights: !getattr [*teacher_weights, 'IMAGENET1K_V1']
6969
src_ckpt:
7070
student_model:
71+
repo_or_dir: 'yoshitomo-matsubara/sc2-benchmark'
7172
key: &student_model_key 'custom_densenet169'
7273
_weights: &student_weights !import_get
7374
key: 'torchvision.models.densenet.DenseNet169_Weights'
@@ -120,11 +121,11 @@ train:
120121
student:
121122
forward_proc: 'forward_batch_only'
122123
adaptations:
123-
sequential: ['features']
124+
sequential: ['bottleneck_layer']
124125
frozen_modules: []
125126
forward_hook:
126127
input: []
127-
output: ['features.bottleneck']
128+
output: ['bottleneck_layer']
128129
wrapper: 'DistributedDataParallel'
129130
requires_grad: True
130131
optimizer:
@@ -150,7 +151,7 @@ train:
150151
kwargs:
151152
input:
152153
is_from_teacher: False
153-
module_path: 'features.bottleneck'
154+
module_path: 'bottleneck_layer'
154155
io: 'output'
155156
target:
156157
is_from_teacher: True

configs/sample/ilsvrc2012/hnd/custom_densenet201_from_densenet201.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ models:
6868
weights: !getattr [*teacher_weights, 'IMAGENET1K_V1']
6969
src_ckpt:
7070
student_model:
71+
repo_or_dir: 'yoshitomo-matsubara/sc2-benchmark'
7172
key: &student_model_key 'custom_densenet201'
7273
_weights: &student_weights !import_get
7374
key: 'torchvision.models.densenet.DenseNet201_Weights'
@@ -120,11 +121,11 @@ train:
120121
student:
121122
forward_proc: 'forward_batch_only'
122123
adaptations:
123-
sequential: ['features']
124+
sequential: ['bottleneck_layer']
124125
frozen_modules: []
125126
forward_hook:
126127
input: []
127-
output: ['features.bottleneck']
128+
output: ['bottleneck_layer']
128129
wrapper: 'DistributedDataParallel'
129130
requires_grad: True
130131
optimizer:
@@ -150,7 +151,7 @@ train:
150151
kwargs:
151152
input:
152153
is_from_teacher: False
153-
module_path: 'features.bottleneck'
154+
module_path: 'bottleneck_layer'
154155
io: 'output'
155156
target:
156157
is_from_teacher: True

configs/sample/ilsvrc2012/hnd/custom_resnet152_from_resnet152.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ models:
6868
weights: !getattr [*teacher_weights, 'IMAGENET1K_V1']
6969
src_ckpt:
7070
student_model:
71+
repo_or_dir: 'yoshitomo-matsubara/sc2-benchmark'
7172
key: &student_model_key 'custom_resnet152'
7273
_weights: &student_weights !import_get
7374
key: 'torchvision.models.resnet.ResNet152_Weights'
@@ -120,11 +121,11 @@ train:
120121
student:
121122
forward_proc: 'forward_batch_only'
122123
adaptations:
123-
sequential: ['bottleneck']
124+
sequential: ['bottleneck_layer']
124125
frozen_modules: []
125126
forward_hook:
126127
input: []
127-
output: ['bottleneck']
128+
output: ['bottleneck_layer']
128129
wrapper: 'DistributedDataParallel'
129130
requires_grad: True
130131
optimizer:
@@ -150,7 +151,7 @@ train:
150151
kwargs:
151152
input:
152153
is_from_teacher: False
153-
module_path: 'bottleneck'
154+
module_path: 'bottleneck_layer'
154155
io: 'output'
155156
target:
156157
is_from_teacher: True

0 commit comments

Comments
 (0)