Dec 30, 2022, 12:12 AM
First, set your API key as an environment variable to authenticate with Ultralytics Platform:
export ULTRALYTICS_API_KEY=your_api_key_herefrom ultralytics import YOLO
# Load your trained model from Ultralytics Platform
model = YOLO("liusu/infallible-squid/yolov8n")
# Run inference on an image
results = model("path/to/image.jpg")
# Process results
for result in results:
boxes = result.boxes # Bounding boxes
result.show() # Display annotated imageNo training data available for this model