Generation

From VectorSpaceLab/AREX-Skill · View interactive version

Generation is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Use ALAE checkpoints for demo, image generation, reconstructions, style mixing, traversals, and principal-direction management.

How to use this skill

Skill file

ALAE generation router

Use this sub-skill when the user wants to run ALAE or StyleALAE from an existing pretrained or trained checkpoint for:

Do not use this sub-skill to train checkpoints, prepare raw datasets/TFRecords, or run quantitative metrics. Route those to ../training/, ../data-preparation/, and ../metrics/ respectively.

Required read order

  1. Read generation workflows to choose the correct GUI or noninteractive figure script and to identify required assets.
  2. Read latent editing for direction_*.npy labels, FFHQ-specific caveats, and the expensive regeneration sequence.
  3. If anything is missing or a command fails before model launch, read generation troubleshooting.

Safe preflight before GPU or GUI work

When running native ALAE subdirectory scripts from a checkout root, first set that checkout root on the import path:

export PYTHONPATH="$PYTHONPATH:$(pwd)"

Before launching those native scripts, run the bundled checkers from this sub-skill directory (or replace scripts/... with the actual path to this generated skill) and point --repo-root at the ALAE checkout. They validate assets without loading models or touching CUDA:

python scripts/check_generation_assets.py \
  --repo-root <ALAE-checkout> \
  --config ffhq

python scripts/check_principal_directions.py \
  --repo-root <ALAE-checkout> \
  --inspect-shapes

The checkers only inspect files and config text. A failed preflight should be fixed before launching interactive_demo.py, style_mixing/stylemix.py, or make_figures/*.py.

Routing hints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.