Use the widget below to experiment with YOLO11. You can detect COCO classes such as people, vehicles, animals, household items.
YOLO11 is a computer vision model that you can use for object detection, segmentation, and classification.
YOLO11
is licensed under a
AGPL-3.0
license.
You can use Roboflow Inference to deploy a
YOLO11
API on your hardware. You can deploy the model on CPU (i.e. Raspberry Pi, AI PCs) and GPU devices (i.e. NVIDIA Jetson, NVIDIA T4).
Below are instructions on how to deploy your own model API.
First, install Inference:
pip install inference
To try a demo with a model trained on the Microsoft COCO dataset, use:
import inference
model = inference.load_roboflow_model("yolov8n-640")
results = model.infer(image="YOUR_IMAGE.jpg")
Above, replace:
YOUR_IMAGE.jpg
with the path to your image.You can also run fine-tuned models with Inference.
Retrieve your Roboflow API key and save it in an environment variable called ROBOFLOW_API_KEY
:
export ROBOFLOW_API_KEY="your-api-key"
To use your model, run the following code:
import inference
model = inference.load_roboflow_model("model-name/version")
results = model.infer(image="YOUR_IMAGE.jpg")
Above, replace:
YOUR_IMAGE.jpg
with the path to your image.model_id/version
with the YOLOv8 model ID and version you want to use. Learn how to retrieve your model and version ID.