Skip to content

Commit

Permalink
Fix typo (#3729)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelAnderson-AI committed Jun 22, 2021
1 parent f45165f commit 3926bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def run(weights='./yolov5s.pt', # weights path

# Load PyTorch model
device = select_device(device)
assert not (device.type == 'cpu' and opt.half), '--half only compatible with GPU export, i.e. use --device 0'
assert not (device.type == 'cpu' and half), '--half only compatible with GPU export, i.e. use --device 0'
model = attempt_load(weights, map_location=device) # load FP32 model
labels = model.names

Expand Down

0 comments on commit 3926bca

Please sign in to comment.