Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alexnet = models.alexnet()
- model_path = "model_best.pth.tar"
- state_dict = torch.load(model_path,map_location='cpu')
- alexnet.load_state_dict(state_dict,strict=False)
- alexnet.eval()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement