Skip to content
Back to skills

Models And Weights

ASecurity

"Select, construct, configure, inspect, and troubleshoot

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
datapythonnodeapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill models-and-weights --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Models And Weights?

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

Security grade badge for Models And Weights
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-models-and-weights/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-models-and-weights)

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: models-and-weights
description: "Select, construct, configure, inspect, and troubleshoot
  TorchVision models, pretrained weights, weight transforms, and feature
  extraction."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# TorchVision Models and Weights

Use this sub-skill when a task asks an agent to choose or instantiate a TorchVision model, handle pretrained weights safely, inspect available model/weight APIs, get the correct inference preprocessing, interpret model-family outputs, or extract intermediate features.

## Route Here For

- `torchvision.models` builders and task subpackages: classification, detection, segmentation, video, quantization, optical flow, and feature extraction.
- Model lookup APIs: `list_models`, `get_model`, `get_model_builder`, `get_model_weights`, and `get_weight`.
- `WeightsEnum` objects, `DEFAULT` aliases, `weights.transforms()`, `weights.meta`, download/cache behavior, and no-network test patterns.
- Detection/segmentation/video/optical-flow model output shape interpretation at the model API level.
- `torchvision.models.feature_extraction` node listing and `create_feature_extractor` routing for ResNet/FPN-style backbones.

## Route Elsewhere

- For general augmentation pipelines, v2 transforms, TVTensors, boxes/masks/keypoints metadata, and transform migration, use `../transforms-and-tv-tensors/`.
- For datasets, data roots, image/video decoding, visualization grids, and drawing utilities, use `../datasets-io-utils/`.
- For low-level `torchvision.ops` box/NMS/ROI APIs and custom op diagnostics, use `../ops-and-detection/`.
- For official training/evaluation reference scripts, distributed launches, presets, and long-running recipe commands, use `../training-references/`.

## Fast Paths

- Select or list models: see `references/model-selection.md`.
- Use weights without accidental downloads: see `references/weights-and-inference.md`.
- Extract intermediate features or debug node names: see `references/feature-extraction.md`.
- Diagnose errors and version/cache issues: see `references/troubleshooting.md`.
- Inspect the installed API safely: run `python scripts/inspect_models.py --help`, then `python scripts/inspect_models.py list --include 'resnet*'` or `python scripts/inspect_models.py weights resnet50`.

## Default Safety Policy

Prefer `weights=None` in tests, examples, and smoke checks unless the user explicitly requests pretrained weights and accepts network/cache behavior. Inspect weight metadata and preprocessing with `get_model_weights()` or `get_weight()` before constructing a pretrained model. Call `model.eval()` for inference and use `weights.transforms()` for preprocessing whenever weights are used.

Files in this skill

  • SKILL.md2.7 KB
  • references/feature-extraction.md4.9 KB
  • references/model-selection.md4.8 KB
  • references/troubleshooting.md4.7 KB
  • references/weights-and-inference.md5.4 KB
  • scripts/inspect_models.py8.2 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.