Skip to content
Back to skills

Inference And Evaluation

ASecurity

"Build and debug MUNIT single-image, example-guided, batch

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythonbash

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 inference-and-evaluation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inference And Evaluation?

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

Security grade badge for Inference And Evaluation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-inference-and-evaluation-521510e1/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-inference-and-evaluation-521510e1)

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: inference-and-evaluation
description: "Build and debug MUNIT single-image, example-guided, batch
  translation, and IS/CIS evaluation commands."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Inference and Evaluation

Use this sub-skill when the user wants to translate images with a trained MUNIT or UNIT checkpoint, produce diverse samples, use an example style image, process an input folder, or reason about optional Inception Score / Conditional Inception Score metrics.

## Responsibilities

- Construct safe commands for `test.py` single-image inference and `test_batch.py` folder inference without loading checkpoints or starting CUDA by default.
- Explain A-to-B versus B-to-A direction, random style sampling, synchronized style codes, example-guided style, `num_style`, and output naming.
- Diagnose missing checkpoint/config/input paths, style/config mismatches, output folder surprises, and old checkpoint conversion behavior.
- Distinguish core translation from optional IS/CIS metric computation and its additional Inception-model prerequisites.

## Start Here

1. Confirm runtime and checkpoint prerequisites in `../environment-and-setup/`; unmodified inference calls `.cuda()` and needs a compatible legacy runtime.
2. Validate the YAML and any input folders in `../data-and-configuration/` when the command uses a config or batch folder.
3. Read `references/workflows.md` for single-image, example-guided, and batch recipes.
4. Use a bundled command builder to print the command without executing it:

   ```bash
   python scripts/munit_inference_command.py --help
   python scripts/munit_inference_command.py \
     --repo-root /path/to/user/munit-checkout \
     --config configs/edges2shoes_folder.yaml \
     --input inputs/edges2shoes_edge.jpg \
     --checkpoint models/edges2shoes.pt \
     --output-folder outputs/edges2shoes \
     --a2b 1 \
     --num-style 10
   ```

5. For folder inference or metrics, use:

   ```bash
   python scripts/munit_batch_command.py --help
   ```

## Route Elsewhere

- Installing the legacy PyTorch/CUDA stack or triaging import failures: `../environment-and-setup/`.
- Editing configs, dataset folders, or list files: `../data-and-configuration/`.
- Training checkpoints or resume behavior: `../training/`.
- Changing model architecture, checkpoint key conversion, or modernizing source code: `../model-internals/`.

## Safety Gates

- Do not auto-download pretrained checkpoints, Inception models, datasets, or VGG assets.
- Do not run actual inference unless the user provides local asset paths, accepts CUDA/runtime requirements, and authorizes execution.
- Do not treat `--help` success as proof that a checkpoint can run; help checks validate parser coverage only.
- Do not claim CPU inference support for the unmodified scripts. They move models, inputs, styles, and tensors to CUDA.

## Reference Map

- `references/workflows.md` - practical single-image, example-guided, batch, direction, and output recipes.
- `references/cli-reference.md` - exact `test.py` and `test_batch.py` flags and defaults.
- `references/evaluation-metrics.md` - IS/CIS metric prerequisites and interpretation boundaries.
- `references/troubleshooting.md` - symptom-driven fixes for checkpoint, style, direction, output, metric, and legacy-runtime failures.
- `scripts/munit_inference_command.py` - safe single-image/example-guided command builder.
- `scripts/munit_batch_command.py` - safe batch/metric command builder.

Files in this skill

  • SKILL.md3.4 KB
  • references/cli-reference.md4.4 KB
  • references/evaluation-metrics.md2.1 KB
  • references/troubleshooting.md2.5 KB
  • references/workflows.md3.5 KB
  • scripts/munit_batch_command.py6 KB
  • scripts/munit_inference_command.py5.2 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.