-
Search before asking
Questioncan you give me a complete code? when i use HaloAnnotator, nothing changes in the image, the detections.mask is None import cv2
import supervision as sv
from ultralytics import YOLO
filename = '../src/static/dog.png'
image = cv2.imread(filename)
model = YOLO('../models/yolov8x.pt')
results = model(image)[0]
detections = sv.Detections.from_ultralytics(results)
annotated_image = sv.HaloAnnotator().annotate(
scene=image.copy(), detections=detections)
sv.plot_image(annotated_image) AdditionalNo response |
Beta Was this translation helpful? Give feedback.
Answered by
LinasKo
May 9, 2024
Replies: 2 comments 1 reply
-
Hi @wilsonlv 👋 It's very useful that you checked the To use model = YOLO('yolov8x-seg') |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wilsonlv
-
@LinasKo appreciate for help! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @wilsonlv 👋
It's very useful that you checked the
mask
value.To use
HaloAnnotator
you need a segmentation model. For example: