Skip to content

Commit

Permalink
.half() bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jul 6, 2020
1 parent 04bdbe4 commit a40f615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a40f615

Please sign in to comment.