ArtificialCoder02 commited on
Commit
90fa634
·
1 Parent(s): 59d9031

Made Changes

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,10 +25,10 @@ args.cx = '772f0ccc480364116'
25
 
26
 
27
  # model
28
- device = 'cuda' #torch.device("cuda" if torch.cuda.is_available() else "cpu")
29
  model = get_model(args)
30
  model.to(device)
31
- checkpoint = torch.hub.load_state_dict_from_url(args.resume, map_location='cuda')
32
  model.load_state_dict(checkpoint['model'], strict=True)
33
 
34
 
 
25
 
26
 
27
  # model
28
+ device = 'cpu' #torch.device("cuda" if torch.cuda.is_available() else "cpu")
29
  model = get_model(args)
30
  model.to(device)
31
+ checkpoint = torch.hub.load_state_dict_from_url(args.resume, map_location='cpu')
32
  model.load_state_dict(checkpoint['model'], strict=True)
33
 
34