提交 74290825 编写于 作者: G Glenn Jocher

updates

上级 e23b1a3d
...@@ -60,7 +60,7 @@ def detect( ...@@ -60,7 +60,7 @@ def detect(
img = torch.from_numpy(img).unsqueeze(0).to(device) img = torch.from_numpy(img).unsqueeze(0).to(device)
if ONNX_EXPORT: if ONNX_EXPORT:
torch.onnx.export(model, img, 'weights/model.onnx', verbose=True) torch.onnx.export(model, img, 'weights/model.onnx', verbose=True)
return # ONNX export return
pred = model(img) pred = model(img)
pred = pred[pred[:, :, 4] > conf_thres] # remove boxes < threshold pred = pred[pred[:, :, 4] > conf_thres] # remove boxes < threshold
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册