Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Feb 11, 2019
1 parent e23b1a3 commit 7429082
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 @@ -60,7 +60,7 @@ def detect(
img = torch.from_numpy(img).unsqueeze(0).to(device)
if ONNX_EXPORT:
torch.onnx.export(model, img, 'weights/model.onnx', verbose=True)
return # ONNX export
return
pred = model(img)
pred = pred[pred[:, :, 4] > conf_thres] # remove boxes < threshold

Expand Down

0 comments on commit 7429082

Please sign in to comment.