nguyenp99 commited on
Commit
443cbca
1 Parent(s): 119b1cc

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:0" 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" if cuda else "cpu")
13
 
14
 
15
  def time_synchronized():