Quickstart
See a live example of PySDK, demonstrating live inferencing and rapid deployment.
Example Code
import degirum as dg
# Declaring variables
# Set your model name, inference host address, model zoo, and AI Hub token.
your_model_name = "yolov8n_relu6_coco--640x640_quant_tflite_multidevice_1"
your_host_address = "@local" # Can be "@cloud", host:port, or "@local"
your_model_zoo = "degirum/public"
# Specify a path to your image file
your_image = 'https://raw.githubusercontent.com/DeGirum/PySDKExamples/main/images/Cat.jpg'
# Loading a model
model = dg.load_model(
model_name = your_model_name,
inference_host_address = your_host_address,
zoo_url = your_model_zoo,
# optional parameters, such as output_confidence_threshold=0.5
)
# Perform AI model inference on your image
inference_result = model(your_image)
# Print the inference result
print(inference_result)Last updated
Was this helpful?

