技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
stylegan-training【数据与研究】Guides StyleGAN-Human SHHQ training with the bundled StyleGAN2/StyleGAN3 command builders, dataset layout checks, GPU planning, dry runs, resumes, and training troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this route when the user wants to train or resume StyleGAN2-ADA or StyleGAN3 on SHHQ, adapt the paper-scale eight-GPU recipes, validate dataset/output paths, or diagnose training command failures.
Training is expensive and asset-gated. Do not launch a long run from a generic request. First confirm the user has lawful access to SHHQ, a prepared dataset directory or zip, enough GPU memory/storage, and a desired run budget.
The bundled builder only prints a command:
python sub-skills/stylegan-training/scripts/build_training_command.py \
--repo-root /path/to/DragGAN --version sg2 \
--data data/SHHQ-1.0 --outdir training_results/sg2 \
--gpus 1 --batch 4 --kimg 10 --dry-run-flag
The training_scripts/sg2 and training_scripts/sg3 files in StyleGAN-Human are modified training entry points and network files, not always complete standalone training roots. If the builder warns about missing support modules such as metrics/, training_loop.py, torch_utils/, or dnnlib/, apply the StyleGAN-Human modifications to a complete StyleGAN2-ADA or StyleGAN3 training tree and pass --training-root <prepared-root> before executing.
Use references/training-workflows.md for SG2/SG3 recipes, references/dataset-and-config.md for SHHQ layout and legal/config constraints, and references/troubleshooting.md before retrying a failed run.
--cfg shhq, --data, --gpus, --aug, --mirror, --snap, and --square False; --batch, --gamma, and --kimg can override the base config.--cfg stylegan3-r (or stylegan3-t), --data, --gpus, --batch, --gamma, --mirror, --aug, --square False, and --snap are required/planned controls.kimg; keep a separate output directory; use --dry-run first.--resume; record the source run, config, data version, and changed options.