fix: ultralytics hide_labels → show_labels

This commit is contained in:
Bingsu
2023-04-26 23:18:57 +09:00
parent ff4f99ecf4
commit 1fea38471d

View File

@@ -16,7 +16,7 @@ def ultralytics_predict(
model_path = str(model_path)
model = YOLO(model_path)
pred = model(image, conf=confidence, hide_labels=True)
pred = model(image, conf=confidence, show_labels=False)
bboxes = pred[0].boxes.xyxy.cpu().numpy()
if bboxes.size == 0: