Closed xy3xy3 closed 5 months ago
Thanks for your interest! Could you please try to add below lines and try again?
from ultralytics.nn.autobackend import default_class_names
model.model.names=default_class_names("coco8.yaml")
Thanks for your interest! Could you please try to add below lines and try again?
from ultralytics.nn.autobackend import default_class_names model.model.names=default_class_names("coco8.yaml")
Thanks.
from ultralytics import YOLOv10
from ultralytics.nn.autobackend import default_class_names
model = YOLOv10("models/yolov10n.pt").to("cuda")
model.model.names=default_class_names("coco8.yaml")
res = model.predict("bus.jpg",
show_boxes=True,show_conf=True,show_labels=True)[0]
res.show()
I can't get label when using YOLO v10.