地址链接:https://www.flyai.com/m/tresnet_m_448.pth
查看来源:https://github.com/mrT23/TResNet
确定自己使用的框架并导入对应的库。导入库实现样例代码可参考 文档中心-预训练模型使用教程
在代码中实现加载预训练模型地址
model = TResnetM(num_classes=num_classes)
state = torch.load(path)['model']
model.load_state_dict(state, strict=True)