nguyenp99 commited on
Commit
5bcdad5
1 Parent(s): 091dd84

Update stamp_processing/module/yolov5/yolo_utils/utils.py

Browse files
stamp_processing/module/yolov5/yolo_utils/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():