Skip to content
Back to skills

Mnist Generators

ASecurity

"Use, inspect, adapt, and troubleshoot Keras-GAN standalone

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolspythonshellbashapi

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 mnist-generators --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mnist Generators?

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

Security grade badge for Mnist Generators
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mnist-generators/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mnist-generators)

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: mnist-generators
description: "Use, inspect, adapt, and troubleshoot Keras-GAN standalone
  MNIST-style generator scripts that do not require paired image-domain
  directories."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# MNIST Generators

Use this sub-skill for Keras-GAN's standalone educational scripts that load Keras MNIST-like arrays directly instead of requiring paired image-domain folders. It covers GAN, DCGAN, CGAN, ACGAN, SGAN, InfoGAN, LSGAN, BGAN, BiGAN, Adversarial Autoencoder, CoGAN, DualGAN, WGAN, and WGAN-GP.

Do not start a full training run from a script's `if __name__ == "__main__"` defaults unless the user explicitly accepts long CPU/GPU training, dataset download/cache behavior, and generated file writes.

## Route elsewhere

- CycleGAN, DiscoGAN, and Pix2Pix need image-domain or paired-image datasets: use the image-translation sub-skill.
- CCGAN, context encoder, PixelDA, and SRGAN need inpainting, domain-adaptation, restoration, super-resolution, or image-directory handling: use the domain-and-restoration sub-skill.
- Cross-cutting installation issues belong in the root Keras-GAN compatibility and troubleshooting references; this sub-skill records only the MNIST-generator-specific symptoms.

## Fast workflow

1. Choose the script/class from [references/model-api-reference.md](references/model-api-reference.md). Check the train signature, default `__main__` epoch count, output path, and special loss methods before adapting.
2. From this generated skill's root directory, run static inspection without importing Keras:

   ```bash
   python sub-skills/mnist-generators/scripts/model_inventory.py --repo-root /path/to/a/Keras-GAN-checkout
   python sub-skills/mnist-generators/scripts/model_inventory.py --repo-root /path/to/a/Keras-GAN-checkout --json
   ```

3. For dependency or constructor smoke checks, default to import-only and add `--construct` only after confirming a legacy Keras/TensorFlow runtime:

   ```bash
   python sub-skills/mnist-generators/scripts/dry_run_model.py --repo-root /path/to/a/Keras-GAN-checkout --model gan
   python sub-skills/mnist-generators/scripts/dry_run_model.py --repo-root /path/to/a/Keras-GAN-checkout --model dcgan --construct
   python sub-skills/mnist-generators/scripts/dry_run_model.py --repo-root /path/to/a/Keras-GAN-checkout --model wgan-gp
   ```

4. Follow [references/workflows.md](references/workflows.md) for safe adaptation, short smoke runs, output-directory handling, and model comparison.
5. Use [references/troubleshooting.md](references/troubleshooting.md) when imports fail, WGAN-GP cannot find `_Merge`, `images/` or `saved_model/` is missing, Keras dataset downloads are blocked, or a run is taking too long.

## Safety rules

- The bundled inventory script is static and safe: no Keras import, no network, no training, and no writes except optional shell redirection by the caller.
- The bundled dry-run script imports a selected source file and constructs a model only when `--construct` is supplied; it never calls `train(...)`.
- The original scripts hard-code `images/...` and sometimes `saved_model/...` relative to the current working directory. Create those directories in a temporary run directory before any training smoke.
- WGAN-GP's `RandomWeightedAverage` uses a legacy private Keras `_Merge` API and a fixed batch dimension of 32; treat modern-Keras failures as compatibility diagnostics, not model-quality failures.

Files in this skill

  • SKILL.md3.4 KB
  • references/model-api-reference.md12.8 KB
  • references/troubleshooting.md6.3 KB
  • references/workflows.md7 KB
  • scripts/dry_run_model.py5 KB
  • scripts/model_inventory.py11.5 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.