.half() bug fix

pull/1/head
Glenn Jocher 5 years ago
parent 04bdbe4104
commit a40f615c6f

@ -24,7 +24,7 @@ def detect(save_img=False):
model = torch.load(weights, map_location=device)['model'].float().eval() # load FP32 model
imgsz = check_img_size(imgsz, s=model.stride.max()) # check img_size
if half:
model.float() # to FP16
model.half() # to FP16
# Second-stage classifier
classify = False

Loading…
Cancel
Save