Skip to content
Back to skills

Inference And Evaluation

ASecurity

"Run and troubleshoot YOLOv7-d2 PyTorch demo inference,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
devopspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill inference-and-evaluation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inference And Evaluation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inference And Evaluation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-inference-and-evaluation-feb81ac7/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-inference-and-evaluation-feb81ac7)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: inference-and-evaluation
description: "Run and troubleshoot YOLOv7-d2 PyTorch demo inference,
  visualization, W&B logging, benchmark planning, and COCO evaluation
  workflows."
metadata:
  disco-role: operating
disable-model-invocation: true
license: GPL 3.0
---

# Inference and Evaluation

Use this sub-skill when the user needs a YOLOv7-d2 PyTorch checkpoint demo, image/video visualization, confidence/NMS tuning, W&B inference logging, benchmark planning, COCO evaluation, or demo/eval troubleshooting.

## Start here

1. Confirm the user has a config file, checkpoint/weights, and input images/video or a registered validation dataset.
2. Use [scripts/check_demo_inputs.py](scripts/check_demo_inputs.py) to preflight config, input, output, and local weight paths.
3. Build a demo command with [scripts/build_demo_command.py](scripts/build_demo_command.py), then read [references/workflows.md](references/workflows.md).
4. For evaluation or benchmark tasks, read [references/evaluation.md](references/evaluation.md).
5. For predictor internals and flags, read [references/api-reference.md](references/api-reference.md).
6. Use [references/troubleshooting.md](references/troubleshooting.md) for headless OpenCV, missing weights, dataset registration, or LazyConfig demo issues.

## Common command shapes

Image or directory demo:

```bash
python demo.py --config-file path/to/config.yaml --input path/to/image_or_dir --output path/to/out_dir --opts MODEL.WEIGHTS path/to/model.pth
```

Force CPU for a small smoke run:

```bash
python demo.py --config-file path/to/config.yaml --input path/to/image.jpg --output path/to/out.jpg --opts MODEL.WEIGHTS path/to/model.pth MODEL.DEVICE cpu
```

COCO evaluation shape:

```bash
python train_det.py --config-file path/to/config.yaml --eval-only MODEL.WEIGHTS path/to/model.pth
```

## Boundaries

- For config selection, dataset registration, and training launchers, read [../training-and-configuration/SKILL.md](../training-and-configuration/SKILL.md).
- For ONNXRuntime inference rather than PyTorch checkpoint inference, read [../deployment-and-export/SKILL.md](../deployment-and-export/SKILL.md).

## Safety notes

Do not run demos without user-provided weights and input data. Do not run the benchmark loop as a default check; it repeats inference and is hardware/model dependent. Do not run data-cleaning workflows without explicit user approval because they can influence which data is kept or discarded.

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md1.3 KB
  • references/evaluation.md1.6 KB
  • references/troubleshooting.md1.6 KB
  • references/workflows.md1.8 KB
  • scripts/build_demo_command.py1.7 KB
  • scripts/check_demo_inputs.py1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.