Skip to content

Commit

Permalink
Merge pull request #155 from yoshitomo-matsubara/dev
Browse files Browse the repository at this point in the history
Fix bugs
  • Loading branch information
yoshitomo-matsubara authored Dec 8, 2024
2 parents d9bf382 + 8fe7718 commit 07c9a3a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def custom_resnet50(bottleneck_channel=12, bottleneck_idx=7, compressor=None, de
}
}
short_module_name_set = set(short_module_names)
skips_avgpool = 'avgpool' in short_module_name_set
skips_fc = 'fc' in short_module_name_set
skips_avgpool = 'avgpool' not in short_module_name_set
skips_fc = 'fc' not in short_module_name_set
return splittable_resnet(bottleneck_layer_config, resnet_name='resnet50',
skips_avgpool=skips_avgpool, skips_fc=skips_fc, short_module_names=short_module_names,
**kwargs)
Expand All @@ -40,8 +40,8 @@ def custom_resnet101(bottleneck_channel=12, bottleneck_idx=7, compressor=None, d
}
}
short_module_name_set = set(short_module_names)
skips_avgpool = 'avgpool' in short_module_name_set
skips_fc = 'fc' in short_module_name_set
skips_avgpool = 'avgpool' not in short_module_name_set
skips_fc = 'fc' not in short_module_name_set
return splittable_resnet(bottleneck_layer_config, resnet_name='resnet101',
skips_avgpool=skips_avgpool, skips_fc=skips_fc, short_module_names=short_module_names,
**kwargs)
Expand All @@ -62,8 +62,8 @@ def custom_resnet152(bottleneck_channel=12, bottleneck_idx=7, compressor=None, d
}
}
short_module_name_set = set(short_module_names)
skips_avgpool = 'avgpool' in short_module_name_set
skips_fc = 'fc' in short_module_name_set
skips_avgpool = 'avgpool' not in short_module_name_set
skips_fc = 'fc' not in short_module_name_set
return splittable_resnet(bottleneck_layer_config, resnet_name='resnet152',
skips_avgpool=skips_avgpool, skips_fc=skips_fc, short_module_names=short_module_names,
**kwargs)
Expand Down

0 comments on commit 07c9a3a

Please sign in to comment.