YOLO26
Serverless Hosted API を通じて YOLO26 モデルファミリーを使用します
YOLO26 Object Detection
コードサンプル
1
export ROBOFLOW_API_KEY="your-key-here"2
pip install inference-sdk supervision opencv-python3
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"],
)
result = client.infer(image, model_id="yolo26n-640")
detections = sv.Detections.from_inference(result)
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)*
YOLO26 Instance Segmentation
コードサンプル

事前学習済みモデルとベンチマーク
別名
入力サイズ
Box mAP50-95
Mask mAP50-95
ONNXレイテンシ(ms)*
TensorRT FP16(ms)*
YOLO26 Keypoint Detection
コードサンプル

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