技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
pytorch-cycle-gan-and-pix2pix【数据与研究】Guide CycleGAN and pix2pix image-to-image translation, colorization, dataset preparation, checkpoint inference, and custom model or dataset extensions in this PyTorch repository.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves the PyTorch CycleGAN/pix2pix repository, paired or unpaired image-to-image translation, colorization, train.py/test.py, dataset modes such as aligned or unaligned, pretrained generator checkpoints, or custom model/dataset templates.
This is a checkout-oriented project, not a pip distribution. Use the documented Python 3.11/PyTorch 2.4 baseline in references/installation.md, then run the bundled environment check against the target checkout:
python scripts/check_env.py --repo-root TARGET_CHECKOUT
The required verified scope is CPU-compatible. CUDA/DDP, Caffe Cityscapes evaluation, and HED edge extraction are optional external surfaces; do not treat a CPU import as GPU verification.
Read references/repo-provenance.md before deciding whether this skill matches the current repository state. Read references/troubleshooting.md for cross-cutting dependency, path, backend, and source caveats.
sub-skills/translation-workflows/SKILL.md.sub-skills/data-preparation/SKILL.md.sub-skills/customization/SKILL.md.unaligned, pix2pix uses aligned, one-sided generator application uses single, and colorization uses colorization.--gpu_ids option: it auto-selects CPU when CUDA is unavailable and cuda:0 otherwise. Use a CPU-only PyTorch environment or prefix a Linux command with CUDA_VISIBLE_DEVICES= to hide GPUs. Use torchrun only after a bounded DDP setup smoke; the current source has a synchronized-normalization naming/guard inconsistency.scripts/check_env.py checks dependency imports, optional CUDA availability, repo module imports, and a tiny CPU generator smoke. It does not download assets, load checkpoints, train, or write result files.
For a self-contained command builder, use sub-skills/translation-workflows/scripts/build_command.py. For safe data preparation, use the scripts linked from sub-skills/data-preparation/SKILL.md.