PySDK Integration
Integrate DeGirum PySDK with AI Hub to keep your code concise while tapping into powerful cloud-hosted inference.
Example PySDK Code
import degirum as dg
# Connect to the AI Hub
inference_manager = dg.connect(
inference_host_address = "@cloud",
zoo_url = "degirum/degirum",
token = "<your_token>"
)
# Load a model. In this case, an image detection model from degirum/degirum.
model = inference_manager.load_model("yolov8n_relu6_coco--640x640_quant_n2x_orca1_1")
# Run inference on an image
result = model("https://raw.githubusercontent.com/DeGirum/PySDKExamples/main/images/bikes.jpg")
# Print raw results
print(result)Last updated
Was this helpful?

