地址链接:https://www.flyai.com/m/swin_large_patch4_window7_224_22k.pth
查看来源:https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_large_patch4_window7_224_22k.pth
确定自己使用的框架并导入对应的库。导入库实现样例代码可参考 文档中心-预训练模型使用教程
在代码中实现加载预训练模型地址
path = remote_helper.get_remote_data(url)
model.load_state_dict(torch.load(path))
立刻学会使用预训练模型!
swin_large_patch4_window7_224_22k.pth