Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. alexnet = models.alexnet()
  2. model_path = "model_best.pth.tar"
  3. state_dict = torch.load(model_path,map_location='cpu')
  4. alexnet.load_state_dict(state_dict,strict=False)
  5. alexnet.eval()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement