benchmark
Profile YOLO model inference speed, FPS, and size across image sizes and export formats.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Profile YOLO model inference speed, FPS, and size across image sizes and export formats.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Set up autonomous training monitoring — creates cron jobs to track long-running training, auto-continue pipeline when training completes.
Audit YOLO dataset quality — class distribution, annotation quality, image stats, and improvement suggestions.
Orchestrate the full active learning loop: train, analyze, push to CVAT, wait for review, pull, merge, retrain.
Analyze YOLO training runs — compares to baseline/best, checks per-class regression, analyzes training dynamics and tune convergence, writes actionable recommendations.
Run autonomous YOLO training experiments — reads training-plan.md, assesses bottlenecks, acts strategically, and delegates HP optimization to model.tune().
Initialize a new YOLO project — detects your dataset's starting state and routes through the right tools.
| name | benchmark |
| description | Profile YOLO model inference speed, FPS, and size across image sizes and export formats. |
Profile a YOLO model's inference performance across image sizes and devices.
experiments/summary.md for the latest best model pathexperiments/*/weights/best.pt for the most recentDefault: [320, 640, 1280]. The user can override this list.
Detect available devices. Run on GPU (0) if available, CPU (cpu) always. If both exist, benchmark both and compare.
Read training-plan.md — check the "Deployment target" and "Secondary Goals" sections for latency/size constraints.
Locate the model using the lookup order above. Confirm the path exists before proceeding.
Run benchmarks — for each image size and each available device, run:
from ultralytics import YOLO
import torch
model = YOLO(path)
# Check GPU availability
gpu_available = torch.cuda.is_available()
devices = ["cpu"]
if gpu_available:
devices.insert(0, 0) # GPU first
for device in devices:
for imgsz in image_sizes:
results = model.benchmark(imgsz=imgsz, half=False, device=device)
model.benchmark() handles warm-up internally. Do not add manual warm-up runs.
Collect results — from each benchmark call, extract:
Report — print a summary table:
## Benchmark Results: <model_name>
### GPU (NVIDIA <name>) / CPU
| Format | imgsz | Inference (ms) | FPS | Size (MB) |
|----------|-------|----------------|--------|-----------|
| PyTorch | 320 | ... | ... | ... |
| PyTorch | 640 | ... | ... | ... |
| PyTorch | 1280 | ... | ... | ... |
Analyze against deployment constraints — if training-plan.md specifies:
Recommend optimal imgsz — based on the results:
Print results directly to the conversation. Do not write to a file unless the user asks.
Structure:
training-plan.md constraintsmodel.benchmark() tests the PyTorch format by default.training-plan.md has no deployment constraints, skip the constraint check and just report the numbers.