Skip to content

Commit

Permalink
Fix bug: The truth value of an array with more than one element is am…
Browse files Browse the repository at this point in the history
…biguous. (yolov8-seg)
  • Loading branch information
CVHub520 committed Mar 11, 2024
1 parent e1151b7 commit 1074458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anylabeling/services/auto_labeling/__base__/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])))
Expand Down

0 comments on commit 1074458

Please sign in to comment.