glenn-jocher commited on
Commit
2daa412
1 Parent(s): d1e5716

train with multi-gpu half test bug fix #99

Browse files
Files changed (1) hide show
  1. test.py +2 -1
test.py CHANGED
@@ -46,7 +46,8 @@ def test(data,
46
  else: # called by train.py
47
  training = True
48
  device = next(model.parameters()).device # get model device
49
- half = device.type != 'cpu' and torch.cuda.device_count() == 1 # half precision only supported on single-GPU
 
50
  if half:
51
  model.half() # to FP16
52
 
 
46
  else: # called by train.py
47
  training = True
48
  device = next(model.parameters()).device # get model device
49
+ # half disabled https://github.com/ultralytics/yolov5/issues/99
50
+ half = False # device.type != 'cpu' and torch.cuda.device_count() == 1
51
  if half:
52
  model.half() # to FP16
53