YOLO11
हमारे Serverless Hosted API के माध्यम से YOLO11 model family का उपयोग करें
कोड नमूना
3
मॉडल चलाएँ
import os
import cv2
import numpy as np
import requests
import supervision as sv
from inference_sdk import InferenceHTTPClient
image_url = "https://media.roboflow.com/quickstart/traffic.jpg"
content = requests.get(image_url).content
image = cv2.imdecode(np.frombuffer(content, np.uint8), cv2.IMREAD_COLOR)
client = InferenceHTTPClient(
api_url="https://serverless.roboflow.com",
api_key=os.environ["ROBOFLOW_API_KEY"],
)
results = client.infer(image, model_id="yolov11n-640")
detections = sv.Detections.from_inference(results)
annotated = sv.BoxAnnotator().annotate(image.copy(), detections)
annotated = sv.LabelAnnotator().annotate(annotated, detections)
cv2.imwrite("traffic-annotated.png", annotated)
Pretrained models और benchmarks
उपनाम
इनपुट आकार
mAP50-95
ONNX latency (ms)*
TensorRT FP16 (ms)*
कोड नमूना

Pretrained models और benchmarks
उपनाम
इनपुट आकार
Box mAP50-95
Mask mAP50-95
ONNX latency (ms)*
TensorRT FP16 (ms)*
अंतिम अपडेट
क्या यह उपयोगी था?