Specifying a model
Before diving into code, read this page to understand how PySDK represents and handles models.
Visualizing the ModelSpec
from degirum_tools import ModelSpec
# Example ModelSpec
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/HAILO8L", "HAILORT/HAILO8"]},
# metadata={"accuracy_top1": 0.55, "fps": 120} # optional
)
# Loading a model
model = model_spec.load_model()What each field means
1
2
3
4
5
Last updated
Was this helpful?

