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 직업 분류 기준
| 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.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.