AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Benchmark

skill-macroman5-autotrain-yolo-benchmark · by MacroMan5

Profile YOLO model inference speed, FPS, and size across image sizes and export formats.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-macroman5-autotrain-yolo-benchmark

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-macroman5-autotrain-yolo-benchmark)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Benchmark? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Benchmark

Profile a YOLO model's inference performance across image sizes and devices.

Inputs

Model Path

  1. If the user provides a model path, use it directly.
  2. If not provided, look for the current best model:
  • Check experiments/summary.md for the latest best model path
  • Search experiments/*/weights/best.pt for the most recent
  • Fall back to asking the user

Image Sizes

Default: [320, 640, 1280]. The user can override this list.

Device

Detect available devices. Run on GPU (0) if available, CPU (cpu) always. If both exist, benchmark both and compare.

Procedure

  1. Read training-plan.md — check the "Deployment target" and "Secondary Goals" sections for latency/size constraints.
  1. Locate the model using the lookup order above. Confirm the path exists before proceeding.
  1. 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.

  1. Collect results — from each benchmark call, extract:
  • Inference time (ms)
  • FPS (frames per second)
  • Model size (MB)
  • Format tested
  1. Report — print a summary table:
## Benchmark Results: 

### GPU (NVIDIA ) / CPU

| Format   | imgsz | Inference (ms) | FPS    | Size (MB) |
|----------|-------|----------------|--------|-----------|
| PyTorch  | 320   | ...            | ...    | ...       |
| PyTorch  | 640   | ...            | ...    | ...       |
| PyTorch  | 1280  | ...            | ...    | ...       |
  1. Analyze against deployment constraints — if training-plan.md specifies:
  • A latency target (e.g., "< 10ms"): flag any configuration that exceeds it
  • A model size limit: flag if the model exceeds it
  • A target device: highlight the relevant device results
  1. Recommend optimal imgsz — based on the results:
  • Identify the largest imgsz that meets latency requirements
  • If no latency requirement is specified, note the speed/accuracy tradeoff (larger imgsz = better accuracy, slower inference)
  • If all sizes exceed the constraint, say so and suggest smaller model variants (n < s < m)

Output Format

Print results directly to the conversation. Do not write to a file unless the user asks.

Structure:

  1. Model info (path, parameter count, variant)
  2. Results table(s) — one per device
  3. Deployment check — pass/fail against training-plan.md constraints
  4. Recommendation — optimal imgsz and format for the stated deployment target

Important

  • Do not export the model to other formats unless the user asks. model.benchmark() tests the PyTorch format by default.
  • If training-plan.md has no deployment constraints, skip the constraint check and just report the numbers.
  • Keep output factual. Report what the numbers show, suggest next steps if relevant.
  • If the model file does not exist, stop and tell the user. Do not train a model.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.