Skip to content
Back to skills

Image Translation

ASecurity

"Use Keras-GAN CycleGAN, DiscoGAN, and Pix2Pix image-to-image

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
toolspythonbashapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Image Translation?

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

Security grade badge for Image Translation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-image-translation/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-image-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: image-translation
description: "Use Keras-GAN CycleGAN, DiscoGAN, and Pix2Pix image-to-image
  translation workflows safely: model APIs, dataset layout checks, adaptation
  guidance, and troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Image Translation: CycleGAN, DiscoGAN, Pix2Pix

Use this sub-skill when a task involves Keras-GAN image-to-image translation with
CycleGAN, DiscoGAN, or Pix2Pix. Treat the upstream project as a stale collection
of standalone educational scripts, not an importable package or maintained
training framework.

## Route here for

- Unpaired two-domain translation such as `apple2orange`, `summer2winter_yosemite`,
  `horse2zebra`, or other `A`/`B` domain folders.
- Paired side-by-side conditional translation such as `facades` or
  `edges2shoes`.
- Inspecting or adapting the class APIs `CycleGAN`, `DiscoGAN`, and `Pix2Pix`,
  their `DataLoader` helpers, PatchGAN output shapes, sample-image behavior, or
  stale Keras/TensorFlow runtime assumptions.
- Safe dataset-layout validation before any constructor smoke test or training
  attempt.

## Route elsewhere

- MNIST or latent-vector generators such as GAN, DCGAN, CGAN, AC-GAN, InfoGAN,
  BiGAN, CoGAN, LSGAN, WGAN, or WGAN-GP.
- Specialized restoration/domain-adaptation workflows such as Context Encoder,
  SRGAN, or PixelDA.
- Network dataset acquisition or long training jobs unless the user explicitly
  authorizes them; the original download scripts are reference-only.

## Start with these bundled resources

1. Choose the workflow and API surface in
   [references/model-api-reference.md](references/model-api-reference.md).
2. Validate local data with the safe helper before running any model code:

   ```bash
   python sub-skills/image-translation/scripts/check_dataset_layout.py \
     --dataset-root datasets/apple2orange \
     --workflow cyclegan \
     --min-files 1 \
     --check-images
   ```

   Replace `datasets/apple2orange` with the dataset directory visible to the
   caller. The helper performs no network access, imports no Keras models, and
   does not train.
3. Use [references/data-formats.md](references/data-formats.md) for expected
   folder layouts, split names, side-by-side image conventions, and preprocessing
   assumptions.
4. Use [references/workflows.md](references/workflows.md) for bounded adaptation,
   constructor-smoke, dataset-name, image-resolution, and sample-output workflows.
5. Use [references/troubleshooting.md](references/troubleshooting.md) when imports,
   SciPy image utilities, empty batches, PatchGAN labels, or paired/unpaired data
   conventions fail.

## Safety defaults

- Do not run the original network download scripts automatically.
- Do not run full training as a verification step; prefer dataset checks and
  constructor/import smoke checks in a pinned legacy environment.
- Keep generated outputs in caller-controlled directories such as
  `images/<dataset_name>/<epoch>_<batch>.png`; note that the educational scripts
  create `saved_model/` directories in the checkout but do not save weights by
  default.
- If adapting code, preserve the `disc_patch = (img_rows / 2**4, img_rows /
  2**4, 1)` pattern and update it whenever image resolution changes.

Files in this skill

  • SKILL.md3.2 KB
  • references/data-formats.md6 KB
  • references/model-api-reference.md7.7 KB
  • references/troubleshooting.md5.7 KB
  • references/workflows.md5.9 KB
  • scripts/check_dataset_layout.py10.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.