计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
mnist-generators【效率与协作】Use, inspect, adapt, and troubleshoot Keras-GAN standalone MNIST-style generator scripts that do not require paired image-domain directories.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
Choose the script/class from references/model-api-reference.md. Check the train signature, default __main__ epoch count, output path, and special loss methods before adapting.
From this generated skill's root directory, run static inspection without importing Keras:
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
For dependency or constructor smoke checks, default to import-only and add --construct only after confirming a legacy Keras/TensorFlow runtime:
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
Follow references/workflows.md for safe adaptation, short smoke runs, output-directory handling, and model comparison.
Use 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.
--construct is supplied; it never calls train(...).images/... and sometimes saved_model/... relative to the current working directory. Create those directories in a temporary run directory before any training smoke.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.