mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-03-14 09:47:41 +00:00
fix: ultralytics hide_labels → show_labels
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user