executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
stylegan2-pytorchGuides StyleGAN2 PyTorch image GAN training, checkpoint generation, interpolation, and programmatic sampling with the stylegan2_pytorch package.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this repo skill when a task involves the stylegan2_pytorch package, the
stylegan2_pytorch command, or StyleGAN2-style image GAN training/sampling in
this implementation. The package is CUDA-first: importing the main module
asserts that torch.cuda.is_available() is true, so do not plan CPU-only use.
ModelLoader, Trainer, or StyleGAN2, especially
loading a trained checkpoint and saving generated images from tensors.stylegan2_pytorch.stylegan2_pytorch.Trainer, StyleGAN2, ModelLoader,
and NanException.train_from_folder, so
Fire help displays underscore flag names even though the README commonly shows
hyphenated flag names..jpg, .jpeg, or
.png files.results/<name>/ for generated images and
models/<name>/model_<n>.pt plus models/<name>/.config.json for checkpoints
and model settings.The documented public install path is:
pip install stylegan2_pytorch
For a local clone, an editable install is useful while developing or verifying against that checkout:
pip install -e .
Use a CUDA-capable PyTorch/torchvision build before relying on the package. The
main module imports aim, einops, kornia, vector_quantize_pytorch,
torch, torchvision, and other setup dependencies at import time.
After installing, run the bundled checker from this skill directory if the user has an environment ready:
python scripts/check_install.py
It performs only import, CUDA, signature, and CLI-help checks; it does not train or download data.
--data, --name, image
size, batch/accumulation, output directories, and augmentation settings.--name, --models_dir, and
--results_dir layout and use the training generation/interpolation routes.ModelLoader
expects the default base_dir/models/<name>/ checkpoint layout.This skill was constructed with a CUDA backend inspection environment and a
post-integration plan for CLI help, one-step training, and ModelLoader
sampling checks. The user requested not to import the skill into the managed
repo-skill library, so use the generated directory directly unless a later
request authorizes import.