YOLO11 物体検出
YOLO11 モデルファミリーを Serverless Cloud API で使用します
コード例
3
モデルを実行する
import os
import cv2
import supervision as sv
from inference_sdk import InferenceHTTPClient
image_url = "https://media.roboflow.com/quickstart/traffic.jpg"
image = sv.load_image_from_url(image_url)
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)
事前学習済みモデルとベンチマーク
エイリアス
入力サイズ
mAP50-95
ONNXレイテンシ(ms)*
TensorRT FP16(ms)*
コード例

事前学習済みモデルとベンチマーク
エイリアス
入力サイズ
Box mAP50-95
マスクmAP50-95
ONNXレイテンシ(ms)*
TensorRT FP16(ms)*
最終更新
役に立ちましたか?