Skip to content
Back to skills

Inference Demo

ASecurity

"Guides FCOS image inference, installed CLI use, public FCOS API

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
datapythonapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Inference Demo?

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

Security grade badge for Inference Demo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-inference-demo/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-inference-demo)

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-demo
description: "Guides FCOS image inference, installed CLI use, public FCOS API
  calls, image preprocessing, visualization, and demo troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# FCOS Inference and Demo

Use this sub-skill when the user wants to run FCOS on images, inspect `fcos.FCOS`, use the installed `fcos` command, choose a pretrained model, format detection outputs, or debug demo/inference failures.

## Start here

1. Read [`references/api-reference.md`](references/api-reference.md) for the public `FCOS` constructor and method contracts.
2. Read [`references/model-overview.md`](references/model-overview.md) before selecting a pretrained high-level API model or a config/weight pair.
3. Read [`references/workflows.md`](references/workflows.md) for CLI, Python API, no-display, and webcam/display workflows.
4. Use [`scripts/prepare_image_for_fcos.py`](scripts/prepare_image_for_fcos.py) to validate a local image and produce a resized BGR NumPy array for API tests.
5. Use [`scripts/fcos_cli_safe_wrapper.py`](scripts/fcos_cli_safe_wrapper.py) to construct or run a no-display FCOS inference path without relying on GUI behavior.
6. Read [`references/troubleshooting.md`](references/troubleshooting.md) for `_C`, downloads, color-channel, display, and OOM failures.

## Boundaries

- Route config selection, dataset registration, and YAML errors to [`../data-configs/SKILL.md`](../data-configs/SKILL.md).
- Route COCO/VOC/Cityscapes evaluation and training commands to [`../training-evaluation/SKILL.md`](../training-evaluation/SKILL.md).
- Route ONNX export or ONNX post-processing to [`../onnx-export/SKILL.md`](../onnx-export/SKILL.md).
- Route source edits, compiled layer tests, or modern PyTorch porting to [`../internals-maintenance/SKILL.md`](../internals-maintenance/SKILL.md).

## Minimal safe response pattern

When a user asks for image inference:

1. Ask whether model weights may be downloaded if they did not provide a local weight file.
2. Prefer no-display output in automated contexts; only call visualization when a display is available.
3. Verify the package and extension before model construction because `FCOS(...)` loads weights and builds a detector.
4. Ensure the input is a 3-channel image. The installed CLI reads RGB via image I/O, flips to BGR, and resizes the shorter side to 800.
5. Set `cpu_only=True` only for CPU runs; expect it to be slow.

## Output contract reminder

`FCOS.detect(im)` returns a list of dictionaries with `box`, `score`, `label_name`, and `label_id`. Boxes are `[x1, y1, x2, y2]` floats in the image coordinate system used for inference.

Files in this skill

  • SKILL.md2.6 KB
  • references/api-reference.md2.5 KB
  • references/model-overview.md1.5 KB
  • references/troubleshooting.md1.5 KB
  • references/workflows.md2 KB
  • scripts/fcos_cli_safe_wrapper.py2.8 KB
  • scripts/prepare_image_for_fcos.py2 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.