aharley commited on
Commit
b09e850
·
verified ·
1 Parent(s): 4ae0355

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ url = "https://huggingface.co/aharley/alltracker/resolve/main/alltracker.pth"
53
  state_dict = torch.hub.load_state_dict_from_url(url, map_location='cpu')
54
  model = Net(16)
55
  count_parameters(model)
56
- model.load_state_dict(state_dict, strict=True)
57
  print('loaded ckpt')
58
  model.cuda()
59
  for n, p in model.named_parameters():
 
53
  state_dict = torch.hub.load_state_dict_from_url(url, map_location='cpu')
54
  model = Net(16)
55
  count_parameters(model)
56
+ model.load_state_dict(state_dict['model'], strict=True)
57
  print('loaded ckpt')
58
  model.cuda()
59
  for n, p in model.named_parameters():