Update stamp_processing/module/yolov5/yolo_utils/torch_utils.py
Browse files
stamp_processing/module/yolov5/yolo_utils/torch_utils.py
CHANGED
@@ -9,7 +9,7 @@ import torch.nn.functional as F
|
|
9 |
def select_device(device=""):
|
10 |
cpu = device.lower() == "cpu"
|
11 |
cuda = not cpu and torch.cuda.is_available()
|
12 |
-
return torch.device("cuda" if cuda else "cpu")
|
13 |
|
14 |
|
15 |
def time_synchronized():
|
|
|
9 |
def select_device(device=""):
|
10 |
cpu = device.lower() == "cpu"
|
11 |
cuda = not cpu and torch.cuda.is_available()
|
12 |
+
return torch.device("cuda:1" if cuda else "cpu")
|
13 |
|
14 |
|
15 |
def time_synchronized():
|