Open Alex-SSK opened 1 month ago
Hey @Alex-SSK here is a simple example of how to hit the yolo entrypoint with an image and get bounding boxes back.
import requests
import json
url = 'http://0.0.0.0:5543/v2/models/yolo/infer/from_files'
path = ['lion.jpeg'] # list of images for inference
files = [('request', open(img, 'rb')) for img in path]
resp = requests.post(url=url, files=files)
annotations = json.loads(resp.text) # dictionary of annotation results
bounding_boxes = annotations["boxes"]
labels = annotations["labels"]
print(labels)
If you need a whole example for annotating an image with the boxes, I can share that later, just let me know!
Describe the bug A clear and concise description of what the bug is.
Expected behavior A clear and concise description of what you expected to happen.
Environment Include all relevant environment information:
f7245c8
]:To Reproduce Exact steps to reproduce the behavior:
Errors If applicable, add a full print-out of any errors or exceptions that are raised or include screenshots to help explain your problem.
Additional context Add any other context about the problem here. Also include any relevant files.
I want to deploy Yolov8 with DeepSparse Server. How can I properly make a request with images data?
the endpoint I want to use is 'infer'