gluon_seresnext50_32x4d-90cf2d6e.pth
PyTorch ResNeXt
在线加载模型地址

确定自己使用的框架并导入对应的库。导入库实现样例代码可参考 文档中心-预训练模型使用教程

在代码中实现加载预训练模型地址

调用模型的实现方法

from flyai.utils import remote_helper

from flyai.utils import remote_helper

path = remote_helper.get_remote_data('https://github.com/rwightman/pytorch-pretrained-gluonresnet/releases/download/v0.1/gluon_seresnext50_32x4d-90cf2d6e.pth')

model = gluon_seresnext50_32x4d(pretrained=False)    

model.fc = torch.nn.Sequential( torch.nn.Linear(2048, n_class)    )

立刻学会使用预训练模型!

查看不同深度学习框架下使用预训练模型的样例代码
相关预训练模型