Skip to content
Back to skills

Contrastive Unpaired Translation

ASecurity

"Routes CUT/FastCUT/SinCUT workflows, dataset preparation, and

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

Works with

  • cli

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill contrastive-unpaired-translation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Contrastive Unpaired Translation?

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

Security grade badge for Contrastive Unpaired Translation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-contrastive-unpaired-translation/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-contrastive-unpaired-translation)

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: contrastive-unpaired-translation
description: "Routes CUT/FastCUT/SinCUT workflows, dataset preparation, and
  launcher presets for the contrastive-unpaired-translation repository."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Contrastive Unpaired Translation

Use this repo skill for the CUT family of image-to-image translation workflows in this checkout: CUT, FastCUT, and SinCUT; dataset preparation and layout checks; and preset experiment command generation.

## Start here

- Read `references/repo-provenance.md` when you need to confirm whether this skill matches the current checkout or before refreshing the skill.
- Use `scripts/check_runtime.py` when you want a quick import and CLI smoke check from a repo root.
- Read `references/troubleshooting.md` when smoke checks, checkpoint paths, legacy imports, or launcher commands misbehave.
- If you only want the main model workflows, go to `sub-skills/translation-workflows/`.
- If you need dataset conversion or folder-layout prep, go to `sub-skills/data-preparation/`.
- If you want preset command strings or launcher behavior, go to `sub-skills/experiment-launchers/`.

## Install and smoke check

The checked code runs from a Python environment with a compatible PyTorch and torchvision build plus the small runtime dependencies used by the repo scripts.

Typical install shape:

1. Create an isolated Python environment.
2. Install a CUDA-capable or CPU-compatible `torch`/`torchvision` pair for your host.
3. Install the repository runtime dependencies from `requirements.txt`.
4. Add `opencv-python-headless` when you plan to use the dataset-preparation helpers that import `cv2`.

A minimal smoke check is:

```bash
python scripts/check_runtime.py --repo-root .
```

If you only need the CLI entry points, `python train.py --help` and `python test.py --help` are the quickest verified checks.

## What this skill covers

- Training and testing CUT/FastCUT on unaligned datasets.
- Switching CUT mode between CUT and FastCUT.
- SinCUT single-image translation defaults and workflow notes.
- Loading checkpoints and writing results to `checkpoints/` and `results/`.
- Visualizer/HTML output behavior and visdom usage.
- Dataset helpers for Cityscapes, aligned side-by-side pairs, and cat-face cropping.
- Launcher command presets for `python -m experiments`.

## What this skill does not promise

- It does not promise the stale `--model test` example from upstream README text; this checkout has no `models/test_model.py`.
- It does not promote legacy CycleGAN as a first-class supported route. The legacy code is noted in troubleshooting only because it still exists in the checkout but has incomplete option wiring.
- It does not require or bundle network download scripts for large datasets.

## Routes

### `sub-skills/translation-workflows/`
Read this for CUT/FastCUT/SinCUT model selection, option families, checkpoint loading, output inspection, and the public training/test CLI.

### `sub-skills/data-preparation/`
Read this for dataset directory structure, Cityscapes preparation, A/B pair assembly, aligned side-by-side exports, and grumpifycat-style image cropping.

### `sub-skills/experiment-launchers/`
Read this for safe command generation, launcher presets, GPU ID selection rules, and the `python -m experiments` CLI shape.

## Freshness check

Before you trust the route map, compare the current checkout against `references/repo-provenance.md`. If the commit or evidence paths changed, refresh this skill rather than assuming the guidance is still current.

Files in this skill

  • SKILL.md3.5 KB
  • references/repo-provenance.md1.8 KB
  • references/repo-routing-metadata.json453 B
  • references/troubleshooting.md3.8 KB
  • scripts/check_runtime.py836 B
  • sub-skills/data-preparation/SKILL.md3.2 KB
  • sub-skills/data-preparation/references/data-formats.md2.7 KB
  • sub-skills/data-preparation/references/troubleshooting.md2.7 KB
  • sub-skills/data-preparation/references/workflows.md3.6 KB
  • sub-skills/data-preparation/scripts/combine_A_and_B.py4.3 KB
  • sub-skills/data-preparation/scripts/detect_cat_face.py4.3 KB
  • sub-skills/data-preparation/scripts/make_dataset_aligned.py2.8 KB
  • sub-skills/data-preparation/scripts/prepare_cityscapes_dataset.py4.5 KB
  • sub-skills/experiment-launchers/SKILL.md2.7 KB
  • sub-skills/experiment-launchers/references/launcher-reference.md3.7 KB
  • sub-skills/experiment-launchers/references/troubleshooting.md2.5 KB
  • sub-skills/experiment-launchers/scripts/list_experiment_commands.py9 KB
  • sub-skills/translation-workflows/SKILL.md3.7 KB
  • sub-skills/translation-workflows/references/cli-reference.md5.4 KB
  • sub-skills/translation-workflows/references/troubleshooting.md3.3 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.