First inference
Run your first inference using copy-paste-ready code.
Estimated read time: 1 minute
Run this first
Don’t worry about the details yet. Just run this to see something work—we’ll explain what it does after.
# Quick start: one image → inference → overlay
from degirum_tools import ModelSpec, remote_assets, Display
model_spec = ModelSpec(
model_name="yolov8n_coco--640x640_quant_hailort_multidevice_1",
zoo_url="degirum/hailo",
inference_host_address="@local",
model_properties={"device_type": ["HAILORT/HAILO8", "HAILORT/HAILO8L"]},
)
model = model_spec.load_model()
img = remote_assets.three_persons
res = model(img)
with Display("AI Camera") as output_display:
output_display.show_image(res.image_overlay)You should see an image with object detections overlayed:

What just happened
You specified a model (name and source)
Loaded it into an inference runtime
Ran inference on a test image
Displayed the output using
image_overlay
Last updated
Was this helpful?

