Spaces:
Runtime error
Runtime error
Commit
·
59d9031
1
Parent(s):
3b7c783
Made Changes
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ args.cx = '772f0ccc480364116'
|
|
25 |
|
26 |
|
27 |
# model
|
28 |
-
device = '
|
29 |
model = get_model(args)
|
30 |
model.to(device)
|
31 |
checkpoint = torch.hub.load_state_dict_from_url(args.resume, map_location='cuda')
|
|
|
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')
|