Spaces:
Runtime error
Runtime error
Update run_edit.py
Browse files- run_edit.py +1 -1
run_edit.py
CHANGED
@@ -45,7 +45,7 @@ import cv2
|
|
45 |
def str2bool(x):
|
46 |
return x.lower() in ('true')
|
47 |
|
48 |
-
USE_CPU =
|
49 |
device = torch.device('cuda:0' if (torch.cuda.is_available() and not USE_CPU) else 'cpu')
|
50 |
|
51 |
|
|
|
45 |
def str2bool(x):
|
46 |
return x.lower() in ('true')
|
47 |
|
48 |
+
USE_CPU = False
|
49 |
device = torch.device('cuda:0' if (torch.cuda.is_available() and not USE_CPU) else 'cpu')
|
50 |
|
51 |
|