计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
evaluation-metrics【效率与协作】Evaluate StudioGAN image folders with IS/FID/PRDC, cache feature and moment inputs, choose backbones/resizers, and troubleshoot metric backends.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks to evaluate generated or real image folders with StudioGAN metrics, choose an evaluation backbone or post-resizer, reuse precomputed reference features/moments, or diagnose metric input, CUDA, DDP, pretrained-weight, or cache failures.
-metrics, iFID, or CAS behavior from python src/main.py, read the metrics overview, then route config/dataset edits to training and configuration and checkpoint analysis execution to sampling and analysis.InceptionV3_tf, InceptionV3_torch, ResNet50_torch, SwAV_torch, DINO_torch, Swin-T_torch, legacy, clean, friendly, or cached .npz files, read backbones, resizers, and caches.The bundled scripts do not execute StudioGAN metrics, do not download weights, and do not train. They require explicit paths supplied by the caller.
Build a dry-run command:
python scripts/evaluate_image_folders_command.py \
--repo-root /path/to/PyTorch-StudioGAN \
--dset1 /path/to/real_imagefolder \
--dset2 /path/to/generated_imagefolder \
--metrics fid prdc \
--gpus 0
Check input combinations and lightweight folder/cache structure:
python scripts/check_metric_inputs.py \
--dset1 /path/to/real_imagefolder \
--dset2 /path/to/generated_imagefolder \
--metrics fid prdc
torch.cuda.current_device() and moves models/tensors to CUDA devices. Treat CPU-only metric execution as unsupported unless the user has patched the checkout.--dset1_feats and --dset1_moments are different cache files. FID needs a real/reference folder or moments; PRDC needs a real/reference folder or features.