Skip to content
Back to skills

Evaluation Metrics

ASecurity

"Evaluate StudioGAN image folders with IS/FID/PRDC, cache feature

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
datapythongobashbackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill evaluation-metrics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Evaluation Metrics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Evaluation Metrics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-evaluation-metrics/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-evaluation-metrics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: evaluation-metrics
description: "Evaluate StudioGAN image folders with IS/FID/PRDC, cache feature
  and moment inputs, choose backbones/resizers, and troubleshoot metric
  backends."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# StudioGAN evaluation metrics

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.

## First decision

- If the user has image folders to compare, use StudioGAN's standalone image-folder evaluator and read [the CLI reference](references/evaluate-cli-reference.md).
- If the user is configuring training-time `-metrics`, iFID, or CAS behavior from `python src/main.py`, read [the metrics overview](references/evaluation-metrics.md), then route config/dataset edits to [training and configuration](../training-and-configuration/SKILL.md) and checkpoint analysis execution to [sampling and analysis](../sampling-and-analysis/SKILL.md).
- If the user asks about `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](references/backbones-resizers-and-caches.md).
- For errors, read [troubleshooting](references/troubleshooting.md) before retrying a long metric run.

## Safe helper scripts

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:

  ```bash
  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:

  ```bash
  python scripts/check_metric_inputs.py \
    --dset1 /path/to/real_imagefolder \
    --dset2 /path/to/generated_imagefolder \
    --metrics fid prdc
  ```

## Non-negotiable routing and safety notes

- Do not claim meaningful metric values from CLI help, config compatibility, tiny fixtures, or command-builder checks. Those only prove wiring and argument compatibility.
- The actual StudioGAN evaluation path is GPU-oriented: it queries `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.
- Standalone folder metrics expect ImageFolder-like directories with class subdirectories, even for generated samples.
- `--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.
- Legacy TensorFlow 1.x inception-score code is not part of the current verified PyTorch metric path.

Files in this skill

  • SKILL.md2.9 KB
  • references/backbones-resizers-and-caches.md4.4 KB
  • references/evaluate-cli-reference.md5.1 KB
  • references/evaluation-metrics.md5.4 KB
  • references/troubleshooting.md5 KB
  • scripts/check_metric_inputs.py5.5 KB
  • scripts/evaluate_image_folders_command.py6.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.