Skip to content
Back to skills

Setup And Data

ASecurity

"Install and validate pix2pixHD prerequisites, dataset layout,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
businesspythondebugging

Works with

  • cli

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 setup-and-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup And Data?

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

Security grade badge for Setup And Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-setup-and-data-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-setup-and-data-arex-skill)

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: setup-and-data
description: "Install and validate pix2pixHD prerequisites, dataset layout,
  CLI/config basics, and small data-loader smoke checks."
metadata:
  disco-role: operating
disable-model-invocation: true
license: NOASSERTION
---

# Setup and Data

Use this sub-skill for repository setup, environment prerequisites, Cityscapes-style dataset layout checks, option parsing basics, and tiny data-loader smoke checks.

## Read first

- [Workflows](references/workflows.md)
- [Data layout](references/data-layout.md)
- [Options and configuration](references/options-and-configuration.md)
- [Troubleshooting](references/troubleshooting.md)

## Use when

- you need to confirm the Python stack is ready for pix2pixHD data inspection
- you need to validate a Cityscapes-style `dataroot` before training or inference
- you need to smoke `TrainOptions`, `TestOptions`, `AlignedDataset`, `tensor2label`, or `tensor2im`
- you need to check legacy resize/crop compatibility before choosing a non-default preprocessing mode

## Do not use when

- you are debugging training losses, checkpoint saving, or learning-rate schedules
- you are generating inference HTML, exporting ONNX, or running TensorRT
- you are clustering features or preparing feature caches for instance-conditioned workflows
- you are performing maintainer-only repo operations

## Primary scripts

- [scripts/check_cityscapes_layout.py](scripts/check_cityscapes_layout.py)
- [scripts/check_data_smoke.py](scripts/check_data_smoke.py)

## What this sub-skill covers

- README prerequisites and the minimal Python stack for data-only inspection
- `options/base_options.py`, `options/train_options.py`, and `options/test_options.py` defaults that affect data loading
- `data/aligned_dataset.py`, `data/base_dataset.py`, and `data/image_folder.py`
- `util/util.py` tensor/image conversion helpers and Cityscapes colormap smoke checks
- bundled Cityscapes sample fixture layout under `datasets/cityscapes/`
- parser smoke checks and one-sample dataset load checks
- the legacy torchvision `transforms.Scale` caveat for `resize_and_crop`

## Cross-links

- [Training](../training/SKILL.md): read this first for dataset validation and smoke-ready option defaults.
- [Inference](../inference/SKILL.md): read this for `dataroot` and label/instance folder rules before test-time input prep.
- [Instance features](../instance-features/SKILL.md): read this for `*_feat` folder layout; this sub-skill only names the loader rule.

## Validation sequence

1. Run `scripts/check_cityscapes_layout.py --repo-root <repo-root>`.
2. Run `scripts/check_data_smoke.py --repo-root <repo-root>`.
3. If you must evaluate `resize_and_crop`, rerun the smoke helper with `--probe-legacy-resize` and read the compatibility note.

## Limits

- This sub-skill stays CPU-safe for setup and data inspection.
- `TestOptions` smoke must use `save=False`; the class does not define `continue_train`.
- The bundled fixture is a smoke target only; do not add download logic here.
- Keep `load_features` and feature cache layout questions in the instance-features sub-skill.

Files in this skill

  • SKILL.md3 KB
  • references/data-layout.md2.4 KB
  • references/options-and-configuration.md3.5 KB
  • references/troubleshooting.md3.8 KB
  • references/workflows.md3.8 KB
  • scripts/check_cityscapes_layout.py8 KB
  • scripts/check_data_smoke.py9.4 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.