Skip to content
Back to skills

Inference

ASecurity

"Run MMSegmentation semantic segmentation and depth inference from

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

Works with

  • 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 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inference?

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

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

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
description: "Run MMSegmentation semantic segmentation and depth inference from
  configs, checkpoints, or model aliases, with safe visualization, saved masks,
  device selection, and remote-sensing prerequisites."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Inference

Use this sub-skill when an agent needs to run MMSegmentation inference on images, image batches, videos, or tiled remote-sensing rasters from an existing model. It covers the high-level `MMSegInferencer` path, the lower-level `init_model` / `inference_model` / `show_result_pyplot` path, and the remote-sensing `RSImage` / `RSInferencer` concepts.

## Choose the entry point

- Prefer `MMSegInferencer` when the user gives a model alias, a config path plus optional weights, wants one-call outputs, or needs saved visualization and predicted masks under an output directory.
- Prefer `init_model` + `inference_model` when the user needs direct access to `SegDataSample`, custom Python control flow, video-frame loops, or explicit `show_result_pyplot` rendering.
- Use `RSImage` + `RSInferencer` only for geospatial/tiled remote-sensing images after confirming `GDAL`/`osgeo` is installed and the model config/checkpoint are local.
- For dataset conversion or config authoring, route to `../data-configuration/SKILL.md`; for training or evaluation launch, route to `../training-evaluation/SKILL.md`; for custom model code, route to `../model-customization/SKILL.md`.

## Fast starts

### Safe import/signature smoke checks

Run these without model downloads or checkpoint loading:

```bash
python sub-skills/inference/scripts/mmseg_inference_smoke.py --help
python sub-skills/inference/scripts/mmseg_inference_smoke.py
python sub-skills/inference/scripts/mmseg_inferencer_smoke.py --help
python sub-skills/inference/scripts/mmseg_inferencer_smoke.py
```

### Config/checkpoint image inference

Use local files for deterministic behavior:

```bash
python sub-skills/inference/scripts/mmseg_inference_smoke.py \
  --config PATH/TO/MMSEG_CONFIG.py \
  --checkpoint PATH/TO/CHECKPOINT.pth \
  --image PATH/TO/IMAGE.png \
  --device cpu \
  --out-file outputs/demo_overlay.png
```

The script sets `show=False` whenever `--out-file` is provided, so it is safe for headless sessions.

### Inferencer one-call outputs

Use a local config and local weights unless the user explicitly allows model-alias downloads:

```bash
python sub-skills/inference/scripts/mmseg_inferencer_smoke.py \
  --model PATH/TO/MMSEG_CONFIG.py \
  --weights PATH/TO/CHECKPOINT.pth \
  --image PATH/TO/IMAGE.png \
  --device cpu \
  --out-dir outputs/inferencer
```

`out_dir` saves color overlays under `vis/` and predicted label-index masks under `pred/`.

## Reference map

- `references/api-reference.md` documents callable signatures, return objects, labels/palettes, devices, and saved-output behavior.
- `references/workflows.md` gives image, batch, video, headless, and remote-sensing workflows.
- `references/deployment.md` summarizes when to switch from PyTorch inference to MMDeploy/runtime inference.
- `references/troubleshooting.md` covers missing checkpoints, downloads, headless display, CPU/CUDA, GDAL, MMCV, and dependency compatibility.

Files in this skill

  • SKILL.md3.2 KB
  • references/api-reference.md5.7 KB
  • references/deployment.md2.5 KB
  • references/troubleshooting.md4.3 KB
  • references/workflows.md5.7 KB
  • scripts/mmseg_inference_smoke.py5.5 KB
  • scripts/mmseg_inferencer_smoke.py5.9 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.