技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
training-and-configuration【数据与研究】Choose, validate, and build safe StudioGAN training configurations, datasets, HDF5 flows, checkpoint resumes, DDP, mixed precision, and logging commands.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to choose or edit a StudioGAN YAML config, validate a training dataset layout, plan HDF5 or in-memory data loading, resume from checkpoints, freeze discriminator blocks, or build a safe python src/main.py training command for a separate StudioGAN checkout.
Do not use this sub-skill for standalone image-folder metrics or checkpoint visualization/latent analysis. Route those to sibling skills:
python src/main.py; do not expect package metadata or an installed console entry point./path/to/PyTorch-StudioGAN, /path/to/data, /path/to/save, and /path/to/checkpoint in plans and commands.-ckpt, optionally -best.--freezeD and a source checkpoint.DATA.name, DATA.num_classes, image size, HDF5, or custom folders.All helpers are dry-run/validation tools. They do not train, download datasets intentionally, log into services, or modify checkpoints.
python sub-skills/training-and-configuration/scripts/validate_studiogan_config.py \
--repo-root /path/to/PyTorch-StudioGAN \
--cfg /path/to/PyTorch-StudioGAN/src/configs/CIFAR10/ContraGAN.yaml \
--data-dir /path/to/data --save-dir /path/to/save --train --gpus 1
python sub-skills/training-and-configuration/scripts/check_studiogan_dataset.py \
--data-dir /path/to/imagefolder --require-valid --min-classes 2 --min-images-per-class 1
python sub-skills/training-and-configuration/scripts/build_studiogan_train_command.py \
--repo-root /path/to/PyTorch-StudioGAN \
--cfg /path/to/PyTorch-StudioGAN/src/configs/CIFAR10/ContraGAN.yaml \
--data-dir /path/to/data --save-dir /path/to/save \
--gpus 0 --metrics is fid prdc --mixed-precision --hdf5 --load-in-memory
src/main.py exists under the requested --repo-root.config.Configurations and check_compatability with parser-equivalent RUN defaults.DATA.num_classes, DATA.img_size, and MODEL.backbone match the dataset and intended command mode.train/<class>/... and, for validation/reference evaluation, valid/<class>/....OPTIMIZATION.batch_size is divisible by GPU world size; for analysis/CAS paths, keep it divisible by 8.-l is used only with -hdf5; iFID with HDF5 also requires in-memory loading.--freezeD includes -ckpt and uses a compatible source checkpoint.