技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
py-torch-studio-gan【数据与研究】Use PyTorch-StudioGAN for GAN image-synthesis training, YAML configuration, checkpoint sampling and analysis, and IS/FID/PRDC evaluation workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task names PyTorch-StudioGAN, StudioGAN, src/main.py, src/evaluate.py, BigGAN/StyleGAN StudioGAN YAML configs, GAN image-synthesis training, checkpoint image analysis, or StudioGAN IS/FID/PRDC metric workflows.
This is a repo-specific operating guide for a script-first project. StudioGAN does not expose a normal Python package or console entry point; practical runs use a separate StudioGAN checkout and its src/main.py / src/evaluate.py scripts. The bundled helpers in this skill accept --repo-root /path/to/PyTorch-StudioGAN so they can validate or build commands for whatever checkout the user is actually using.
| User task | Read next |
|---|---|
| Choose or edit YAML configs, validate custom ImageFolder data, build training/resume/freezeD/DDP/HDF5 commands | training and configuration |
| Evaluate real/fake image folders with IS, FID, PRDC, cache features/moments, choose eval backbones or clean/friendly resizers | evaluation metrics |
| Use trained checkpoints for fake/real image saving, visualization, KNN, interpolation, frequency analysis, t-SNE, iFID, CAS, SeFa, truncation, or Langevin sampling | sampling and analysis |
| Check install/runtime assumptions, CUDA, script-first layout, W&B, pretrained weights, or custom CUDA op issues | root troubleshooting |
| Confirm what source version this skill was distilled from before refreshing | repository provenance |
README.md, src/main.py, src/evaluate.py, src/config.py, src/configs/, src/models/, src/metrics/, and src/utils/.tqdm, ninja, h5py, kornia, matplotlib, pandas, scikit-learn (imports as sklearn), scipy, seaborn, wandb, PyYAML (imports as yaml), click, requests, pyspng, imageio-ffmpeg, and timm.Run the root helper before suggesting a long training or metric job:
python scripts/check_studiogan_environment.py \
--repo-root /path/to/PyTorch-StudioGAN \
--require-cuda \
--run-cli-help
The helper imports the expected dependencies, checks CUDA when requested, verifies that the checkout has the two public scripts, and can run -h help checks without training, downloading data, or contacting W&B.
Structured router metadata for managed import lives in repo routing metadata. Do not hand-edit a live router from this skill tree.