imagenet-swav-resnet50w2

作者 lixiangchun · 下载 0 · 点赞 0 · 更新 2023-11-01

import trace_layer2 as models
import torch

x=torch.randn(1, 3, 224, 224)

state_dict = torch.load('swav_imagenet_layer2.pt', map_location='cpu')

model = models.resnet50w2()
model.load_state_dict(state_dict)
model.eval()
feature = model(x)

traced_model = torch.jit.load('traced_swav_imagenet_layer2.pt', map_location='cpu')
traced_model.eval()
feature = traced_model(x)

模型信息

该模型卡暂无预览图和文字说明。以下信息来自 Hugging Face。

作者 lixiangchun
类型—
基础模型—
标签—
下载0
点赞0
更新时间2023-11-01
Hugging Face https://huggingface.co/lixiangchun/imagenet-swav-resnet50w2