updates
This commit is contained in:
parent
b6ff9cad79
commit
febc55d96a
|
@ -67,7 +67,7 @@ def detect(
|
||||||
# Get detections
|
# Get detections
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
img = torch.from_numpy(img).unsqueeze(0).to(device)
|
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 = model(img)
|
||||||
pred = pred[pred[:, :, 4] > conf_thres]
|
pred = pred[pred[:, :, 4] > conf_thres]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue