This commit is contained in:
Glenn Jocher 2018-12-25 13:21:02 +01:00
parent b6ff9cad79
commit febc55d96a
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def detect(
# Get detections
with torch.no_grad():
img = torch.from_numpy(img).unsqueeze(0).to(device)
# pred = torch.onnx._export(model, img, 'weights/model.onnx', verbose=True,); return # ONNX export
# pred = torch.onnx._export(model, img, 'weights/model.onnx', verbose=True); return # ONNX export
pred = model(img)
pred = pred[pred[:, :, 4] > conf_thres]