You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pretrained models you have provided are compressed file, but it cannot be decompressed. And Pytorch can't directly get parameters.
2.def resnet101_ibn_a(pretrained=False, modelpath='./models', **kwargs):
"""Constructs a ResNet-101 model.
Args:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = ResNet(Bottleneck, [3, 4, 23, 3], **kwargs)
if pretrained:
model.load_state_dict(model_zoo.load_url(model_urls['resnet101']))
return model
This function which in resnet_ibn_a.py conclude a dict model_urls,but model_ulrs['resnet101'] is a url which is a resnet101 pretrained models not the resnet101-ibn-net pretrained model.
So I want to ask you for some methods to used IBN-Net pretrained models.Thanks !
The pretrained models you have provided are compressed file, but it cannot be decompressed. And Pytorch can't directly get parameters.
2.def resnet101_ibn_a(pretrained=False, modelpath='./models', **kwargs):
"""Constructs a ResNet-101 model.
Args:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = ResNet(Bottleneck, [3, 4, 23, 3], **kwargs)
if pretrained:
model.load_state_dict(model_zoo.load_url(model_urls['resnet101']))
return model
This function which in resnet_ibn_a.py conclude a dict model_urls,but model_ulrs['resnet101'] is a url which is a resnet101 pretrained models not the resnet101-ibn-net pretrained model.
So I want to ask you for some methods to used IBN-Net pretrained models.Thanks !