Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix bugs in hubconf.py #149

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def custom_resnet50(bottleneck_channel=12, bottleneck_idx=7, compressor=None, de
'kwargs': {
'bottleneck_channel': bottleneck_channel,
'bottleneck_idx': bottleneck_idx,
'compressor': compressor,
'decompressor': decompressor,
'compressor_transform': compressor,
'decompressor_transform': decompressor,
}
}
return splittable_resnet(bottleneck_layer_config, resnet_name='resnet50',
Expand All @@ -23,8 +23,8 @@ def custom_resnet101(bottleneck_channel=12, bottleneck_idx=7, compressor=None, d
'kwargs': {
'bottleneck_channel': bottleneck_channel,
'bottleneck_idx': bottleneck_idx,
'compressor': compressor,
'decompressor': decompressor,
'compressor_transform': compressor,
'decompressor_transform': decompressor,
}
}
return splittable_resnet(bottleneck_layer_config, resnet_name='resnet101',
Expand All @@ -37,8 +37,8 @@ def custom_resnet152(bottleneck_channel=12, bottleneck_idx=7, compressor=None, d
'kwargs': {
'bottleneck_channel': bottleneck_channel,
'bottleneck_idx': bottleneck_idx,
'compressor': compressor,
'decompressor': decompressor,
'compressor_transform': compressor,
'decompressor_transform': decompressor,
}
}
return splittable_resnet(bottleneck_layer_config, resnet_name='resnet152',
Expand All @@ -55,8 +55,8 @@ def custom_densenet169(bottleneck_channel=12, bottleneck_idx=7, compressor=None,
'kwargs': {
'bottleneck_channel': bottleneck_channel,
'bottleneck_idx': bottleneck_idx,
'compressor': compressor,
'decompressor': decompressor,
'compressor_transform': compressor,
'decompressorv': decompressor,
}
}
return splittable_densenet(bottleneck_layer_config, densenet_name='densenet169',
Expand All @@ -74,8 +74,8 @@ def custom_densenet201(bottleneck_channel=12, bottleneck_idx=7, compressor=None,
'kwargs': {
'bottleneck_channel': bottleneck_channel,
'bottleneck_idx': bottleneck_idx,
'compressor': compressor,
'decompressor': decompressor,
'compressor_transform': compressor,
'decompressor_transform': decompressor,
}
}
return splittable_densenet(bottleneck_layer_config, densenet_name='densenet201',
Expand All @@ -96,8 +96,8 @@ def custom_inception_v3(bottleneck_channel=12, bottleneck_idx=7, compressor=None
'kwargs': {
'bottleneck_channel': bottleneck_channel,
'bottleneck_idx': bottleneck_idx,
'compressor': compressor,
'decompressor': decompressor,
'compressor_transform': compressor,
'decompressor_transform': decompressor,
}
}
return splittable_inception_v3(bottleneck_layer_config, short_module_names=short_module_names,
Expand Down
Loading