From 1074458ba45a4b79f096dd563019ef46ad0cdf7f Mon Sep 17 00:00:00 2001 From: cvhub Date: Mon, 11 Mar 2024 15:07:25 +0800 Subject: [PATCH] Fix bug: The truth value of an array with more than one element is ambiguous. (yolov8-seg) --- anylabeling/services/auto_labeling/__base__/yolo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anylabeling/services/auto_labeling/__base__/yolo.py b/anylabeling/services/auto_labeling/__base__/yolo.py index 18e62cfc..241fa037 100644 --- a/anylabeling/services/auto_labeling/__base__/yolo.py +++ b/anylabeling/services/auto_labeling/__base__/yolo.py @@ -314,7 +314,7 @@ def predict_shapes(self, image, image_path=None): shape.label = self.classes[int(class_id)] shape.selected = False shapes.append(shape) - if self.task == "seg" and point: + if self.task == "seg": shape = Shape(flags={}) for p in point: shape.add_point(QtCore.QPointF(int(p[0]), int(p[1])))