技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
image-translation【数据与研究】Use Keras-GAN CycleGAN, DiscoGAN, and Pix2Pix image-to-image translation workflows safely: model APIs, dataset layout checks, adaptation guidance, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
apple2orange, summer2winter_yosemite,
horse2zebra, or other A/B domain folders.facades or
edges2shoes.CycleGAN, DiscoGAN, and Pix2Pix,
their DataLoader helpers, PatchGAN output shapes, sample-image behavior, or
stale Keras/TensorFlow runtime assumptions.Choose the workflow and API surface in references/model-api-reference.md.
Validate local data with the safe helper before running any model code:
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.
Use references/data-formats.md for expected folder layouts, split names, side-by-side image conventions, and preprocessing assumptions.
Use references/workflows.md for bounded adaptation, constructor-smoke, dataset-name, image-resolution, and sample-output workflows.
Use references/troubleshooting.md when imports, SciPy image utilities, empty batches, PatchGAN labels, or paired/unpaired data conventions fail.
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.disc_patch = (img_rows / 2**4, img_rows / 2**4, 1) pattern and update it whenever image resolution changes.