glenn-jocher commited on
Commit
a62333e
1 Parent(s): a40f615

test.py .fuse() update

Browse files
Files changed (1) hide show
  1. test.py +2 -5
test.py CHANGED
@@ -31,11 +31,8 @@ def test(data,
31
 
32
  # Load model
33
  google_utils.attempt_download(weights)
34
- model = torch.load(weights, map_location=device)['model'].float() # load to FP32
35
- torch_utils.model_info(model)
36
- model.fuse()
37
- model.to(device)
38
- imgsz = check_img_size(imgsz, s=model.model[-1].stride.max()) # check img_size
39
 
40
  # Multi-GPU disabled, incompatible with .half() https://github.com/ultralytics/yolov5/issues/99
41
  # if device.type != 'cpu' and torch.cuda.device_count() > 1:
 
31
 
32
  # Load model
33
  google_utils.attempt_download(weights)
34
+ model = torch.load(weights, map_location=device)['model'].float().fuse() # load to FP32
35
+ imgsz = check_img_size(imgsz, s=model.stride.max()) # check img_size
 
 
 
36
 
37
  # Multi-GPU disabled, incompatible with .half() https://github.com/ultralytics/yolov5/issues/99
38
  # if device.type != 'cpu' and torch.cuda.device_count() > 1: