Commit
·
2daa412
1
Parent(s):
d1e5716
train with multi-gpu half test bug fix #99
Browse files
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 |
-
|
|
|
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 |
|