Skip to content
Back to skills

Data Preparation

ASecurity

"Routes ALAE dataset preparation, TFRecord layout validation,

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

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

Installs into .claude/skills of the current project.

Are you the author of Data Preparation?

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

Security grade badge for Data Preparation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-preparation-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-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: data-preparation
description: "Routes ALAE dataset preparation, TFRecord layout validation,
  sample-image setup, style-mixing image layout, and face-alignment workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NO_LICENSE
---

# ALAE Data Preparation

Use this sub-skill when a task asks for ALAE data inputs: TFRecord conversion or splitting, config dataset paths, sample-image directories, style-mixing `src`/`dst` image folders, or face alignment for FFHQ/CelebA-style inputs.

## Route by request

- **Validate a config or checkout layout first:** read [data-layouts](references/data-layouts.md), then run `scripts/validate_alae_data_layout.py` against the user's config. This is the safest first step before training, reconstruction, style mixing, or metrics.
- **Prepare TFRecords:** read [TFRecord preparation](references/tfrecord-preparation.md). The original dataset scripts are TensorFlow 1.x, raw-data dependent, and often large or network-bound; treat commands there as explicit, checkout-root operations.
- **Align face images:** read [face alignment](references/face-alignment.md), then use `scripts/align_faces_alae.py` with explicit `--input-dir`, `--output-dir`, and `--predictor` paths.
- **Debug data errors:** read [troubleshooting](references/troubleshooting.md) for TensorFlow 1.x API failures, `PYTHONPATH` issues, missing dlib predictors, stale `/data/datasets` assumptions, disk/network side effects, and malformed style/sample layouts.

## Boundaries

- This sub-skill owns dataset paths from ALAE configs: `DATASET.PATH`, `DATASET.PATH_TEST`, `PART_COUNT`, `PART_COUNT_TEST`, `SAMPLES_PATH`, `STYLE_MIX_PATH`, `MAX_RESOLUTION_LEVEL`, and `OUTPUT_DIR` as they affect data readiness.
- Route full training launches and checkpoint interpretation to the training sub-skill (`../training/SKILL.md`).
- Route pretrained model downloads, generation, reconstruction, and style-mixing execution to the generation sub-skill (`../generation/SKILL.md`) after this sub-skill validates input layouts.
- Route FID/PPL/LPIPS metric execution to the metrics sub-skill (`../metrics/SKILL.md`) after TFRecords and paths are validated here.

## Safe bundled helpers

```bash
python scripts/validate_alae_data_layout.py --help
python scripts/align_faces_alae.py --help
```

Both helpers avoid network, training, and hard-coded checkout paths by default. Pass an ALAE checkout root or explicit input/output paths when validating or transforming user data.

Files in this skill

  • SKILL.md2.4 KB
  • references/data-layouts.md6.8 KB
  • references/face-alignment.md3.9 KB
  • references/tfrecord-preparation.md7.3 KB
  • references/troubleshooting.md5.8 KB
  • scripts/align_faces_alae.py11.2 KB
  • scripts/validate_alae_data_layout.py18.7 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.